This function injects a mouse event into the event queue. The mouse event will occur at the coordinates (x,y). The event will contain the specified button status. The mouse may be hidden or made visible depending on the state of the visible parameter.
![]() | A GrFlush() is performed so that the event takes place immediately. |
Type | Name | Description |
---|---|---|
GR_COORD | x | The X coordinate to move the cursor too. |
GR_COORD | y | The Y coordinate to move the cursor too. |
int | button | The status of the pointer buttons. Indicate which buttons are down by ORing any combination of these flags: GR_BUTTON_R, GR_BUTTON_M, GR_BUTTON_L. |
int | visible | GR_TRUE to show the mouse cursor, GR_FALSE to hide the cursor. |