[Overview][Constants][Types][Procedures and functions][Variables][Index] |
Get the state of the mouse buttons
Source position: mouseh.inc line 86
function GetMouseButtons: Word; |
GetMouseButtons returns the current button state of the mouse, i.e. it returns a or-ed combination of the following constants:
None.
|
Get next mouse event from the queue. |
|
|
Query the current horizontal position of the mouse cursor. |
|
|
Query the current vertical position of the mouse cursor. |
Program Example2; { Program to demonstrate the GetMouseButtons function. } Uses mouse; begin InitMouse; Writeln('Press right mouse button to exit program'); While (GetMouseButtons<>MouseRightButton) do ; DoneMouse; end.