[Overview][Constants][Types][Procedures and functions][Variables][Index] Reference for unit 'Mouse' (#rtl)

GetMouseEvent

Get next mouse event from the queue.

Declaration

Source position: mouseh.inc line 92

procedure GetMouseEvent(

  var MouseEvent: TMouseEvent

);

Description

GetMouseEvent returns the next mouse event (a movement, button press or button release), and waits for one if none is available in the queue.

Some mouse drivers can implement a mouse event queue which can hold multiple events till they are fetched. Others don't, and in that case, a one-event queue is implemented for use with PollMouseEvent.

Errors

None.

See also

GetMouseButtons

  

Get the state of the mouse buttons

GetMouseX

  

Query the current horizontal position of the mouse cursor.

GetMouseY

  

Query the current vertical position of the mouse cursor.


Documentation generated on: Jun 22 2020