Class TMouseEvent

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TMouseEvent = class(TIrrlichtEvent)

Description

Any kind of mouse event.

Hierarchy

Overview

Methods

Public constructor Create(const NPosition: TPoint; NWheel: Single; NShift, NControl: Boolean; NButtonStates: LongWord; NMouseEventType: TMouseEventType);

Properties

Public property ButtonStates: LongWord read FButtonStates;
Public property Control: Boolean read FControl;
Public property MouseEventType: TMouseEventType read FMouseEventType;
Public property Position: TPoint read FPosition;
Public property Shift: Boolean read FShift;
Public property Wheel: Single read FWheel;

Description

Methods

Public constructor Create(const NPosition: TPoint; NWheel: Single; NShift, NControl: Boolean; NButtonStates: LongWord; NMouseEventType: TMouseEventType);

Constructor. You'll have to call this manually if you want to Post() an event.

Parameters
NPosition
See Position.
NWheel
See Wheel.
NShift
See Shift.
NControl
See Control.
NButtonStates
See ButtonStates.
NMouseEventType
See MouseEventType.

Properties

Public property ButtonStates: LongWord read FButtonStates;

A bitmap of button states. You can use isButtonPressed() to determine if a button is pressed or not. Currently only valid if the event was meMouseMove.

Public property Control: Boolean read FControl;

True if the control button was pressed during the event.

Public property MouseEventType: TMouseEventType read FMouseEventType;

Type of mouse event.

Public property Position: TPoint read FPosition;

Position of the mouse cursor.

Public property Shift: Boolean read FShift;

True if the shift button was pressed during the event.

Public property Wheel: Single read FWheel;

The mouse wheel delta, usually 1.0 or -1.0. Only valid if event was meMouseWheel.


Generated by PasDoc 0.12.1 on 2012-09-14 17:32:22