GrInjectPointerEvent()

Name

GrInjectPointerEvent() -- Simulate a pointer event

Synopsis

void GrInjectPointerEvent ( GR_COORD x , GR_COORD y , int button , int visible );

Description

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.

Note

A GrFlush() is performed so that the event takes place immediately.

Parameters

TypeNameDescription
GR_COORDxThe X coordinate to move the cursor too.
GR_COORDyThe Y coordinate to move the cursor too.
intbuttonThe 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.
intvisibleGR_TRUE to show the mouse cursor, GR_FALSE to hide the cursor.

See Also

GrMoveCursor(), GrInjectKeyboardEvent().