DSpProcessEvent
Use the DSpProcessEvent function to pass system events through to DrawSprocket so that it can correctly handle events it must know about.
OSStatus DSpProcessEvent ( EventRecord *inEvent, Boolean *outEventWasProcessed);
inEvent- A pointer to the event to be passed to DrawSprocket.
outEventWasProcessed- On exit,
trueif DrawSprocket processed the event;falseif the event was not processed.- function result
- A result code.
DESCRIPTION
You pass theDSpProcessEventfunction a pointer to the event to be handled in theinEventparameter. The function returnstruein theoutEventWasProcessedparameter if the event was processed. Your game must pass system events through DrawSprocket so that it can correctly handle events. In particular, whenever your game receives a suspend or resume event, it must call theDSpProcessEventfunction so that DrawSprocket can correctly set the system state for the process switch.When DrawSprocket is suspended, it returns the display to the resolution mode it was in before your context's play state first became active. When DrawSprocket resumes, it restores the display to the resolution mode used by your context. However, it is your responsibility to update the contents of the display at this time.
CALLING RESTRICTIONS
Do not call this function during an interrupt.