Previous Book Contents Book Index Next

Inside Macintosh: Apple Game Sprockets Guide /
Chapter 2 - DrawSprocket / DrawSprocket Reference
Application-Defined Functions /


MyEventHandler

You can use the MyEventHandler function to allow your game to handle events during the display of the device-selection dialog box.

pascal Boolean MyEventHandler (
			EventRecord *event);
event
A pointer to an event record.
function result
Returns true if your game has handled the event, false if not.
DESCRIPTION
The MyEventHandler function returns true if your game handled the event specified in the event parameter; it returns false if it did not. Calls to MyEventHandler result from a call to the DSpUserSelectContext function. If you pass a pointer to this callback function to DSpUserSelectContext, your game can handle events, such as update events, that occur while the dialog box is displayed.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
2 JUL 1996