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).
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. | |
| Public | Position: TVector2; |
|
Old and new positions of the mouse or finger. In the same coordinate system as TInputPressRelease.Position. | |
| Public | Delta: TVector2; |
|
| |
| Public | Pressed: TCastleMouseButtons; |
|
Currently pressed mouse buttons. On touch devices, this is always just [buttonLeft]. | |
| Public | FingerIndex: TFingerIndex; |
|
Finger that is moving, on touch devices. If you use mouse, this is always just 0. | |
Methods
| Public | function ToString: string; |
|
Textual description of this event. | |
Generated by PasDoc 1.0.4.