GetInputState

Syntax

BOOL GetInputState( )

This function determines whether there are mouse, keyboard, or timer events in the system queue that require processing. An event is a record that describes interrupt-level input. Mouse events occur when a user moves the mouse or clicks a mouse button. Keyboard events occur when a user presses one or more keys. Timer events occur after a specified number of clock ticks. The system queue is the location in which Windows stores mouse, keyboard, and timer events.

This function has no parameters.

Return Value

The return value specifies whether mouse, keyboard or timer input occurs. It is nonzero if input is detected. Otherwise, it is zero.