Chapter 5. ODEVs
main() function, or through a message table. Only two of the messages OPlay and OClear must be defined in a message table.
All ODEV messages, including OPlay and OClear, have their parameters passed in a parameter block pointed to by the msgData PSYX parameter. There is a parameter block type for each message declared in "PSYXs.h". Each type name is specified as <messagename>Params. There is also a union of all the types declared as ODEVparams. The union type allows the ODEV to declare main as
short main(long msg, short mod, ODEVparams *msgData, long id);and handle each message in the main procedure without having to typedef msgData differently for every message. Check the file "ODEVs.h" in the PSYX Developer's Kit for the typdef of
ODEVparams.
Generated with CERN WebMaker