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

TMouseEvent

Mouse event reporting record.

Declaration

Source position: mouseh.inc line 22

type TMouseEvent = packed record

  buttons: Word;

  

Pressed buttons at time of event.

  x: Word;

  

Horizontal position of mouse cursor.

  y: Word;

  

Vertical position of mouse cursor.

  Action: Word;

  

Type of event.

end;

Description

The TMouseEvent is the central type of the mouse unit, it is used to describe all mouse events.

The Buttons field describes which buttons were down when the event occurred. The x,y fields describe where the event occurred on the screen. The Action describes what action was going on when the event occurred. The Buttons and Action field can be examined using the constants defined in the unit interface.

See also

GetMouseEvent

  

Get next mouse event from the queue.

PollMouseEvent

  

Query next mouse event. Do not wait if none available.

PutMouseEvent

  

Put a mouse event in the event queue.


Documentation generated on: Jun 22 2020