Return to previous page | Return to menu | Go to next page
Structure
Event management
typedef struct evnt {
WORK *work ;
struct evnt *next ;
struct evnt *before ;
void (*exad)() ;
Uint8 user[EVENT_SIZE - (sizeof(WORK *)
+ sizeof(struct evnt *) * 2 + sizeof(void (*)()))] ;
} EVENT ;
work Pointer of work area next Start address of next event before Start address of the previous event Execution address of (exad) () function user [] work area
Define the event management table.
Set the address obtained by the library function “slGetWork” for the member “work”.
The default is “NULL”.
“EVENT_SIZE” in member “user []” is 128 bytes.
Therefore, the user area is 112 bytes.
Reference: Chapter 10 Event Control
EVENT