MyEventHandler
You can use theMyEventHandler
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
TheMyEventHandler
function returnstrue
if your game handled the event specified in the event parameter; it returnsfalse
if it did not. Calls toMyEventHandler
result from a call to theDSpUserSelectContext
function. If you pass a pointer to this callback function toDSpUserSelectContext
, your game can handle events, such as update events, that occur while the dialog box is displayed.