Record TInputMotion

Unit

Declaration

type TInputMotion = record

Description

Motion (movement) of mouse or a finger on a touch device.

In most cases, you should consider this record as read-only and use only the values provided by the engine, without modifying them. Modifying / constructing TInputMotion manually is possible for certain tricks, e.g. to simulate user input. Be sure in such cases to construct values using InputMotion function.

Source: ui/castlekeysmouse.pas (line 976).

Show Additional Members:

Overview

Fields

Public OldPosition: TVector2;
Public Position: TVector2;
Public Delta: TVector2;
Public Pressed: TCastleMouseButtons;
Public FingerIndex: TFingerIndex;

Methods

Public function ToString: string;

Description

Fields

Public OldPosition: TVector2;

Old and new positions of the mouse or finger. In the same coordinate system as TInputPressRelease.Position.

Source: ui/castlekeysmouse.pas (line 979).

Public Position: TVector2;

Old and new positions of the mouse or finger. In the same coordinate system as TInputPressRelease.Position.

Source: ui/castlekeysmouse.pas (line 979).

Public Delta: TVector2;

Delta of movement, in the same coordinate system as TInputPressRelease.Position.

Source: ui/castlekeysmouse.pas (line 1022).

Public Pressed: TCastleMouseButtons;

Currently pressed mouse buttons. On touch devices, this is always just [buttonLeft].

Source: ui/castlekeysmouse.pas (line 1026).

Public FingerIndex: TFingerIndex;

Finger that is moving, on touch devices. If you use mouse, this is always just 0.

Source: ui/castlekeysmouse.pas (line 1030).

Methods

Public function ToString: string;

Textual description of this event.

Source: ui/castlekeysmouse.pas (line 1033).


Generated by PasDoc 1.0.4.