Gets mouse events.
Err GetMouse( int32 mouseNumber, int32 wait,MouseEventData *data )
This convenience call allows a task to easily monitor mouse events.
This function is similar to GetControlPad()
but gets events from a specified mouse instead of a specified controller pad. It specifies a mouse to monitor, specifies whether the call should return immediately or wait until something happens on the mouse, and provides a data structure for data from the mouse.
When the function executes, it either returns immediately with event information or waits there is a change in the mouse before returning. If an event has occurred, the task must check the MouseEventData data structure for details about the event.
This function returns 1 if an event has occurred on the mouse, 0 if no event has occurred on the mouse, or an error code (a negative value) if an error occurred when attempting to retrieve an event.
Convenience call implemented in input.lib V20.
event.h, input.lib
InitEventUtility
(), GetControlPad(), KillEventUtility()