Skip to content

TSdlFinger

Data about a single finger in a multitouch event.

Each touch event is a collection of fingers that are simultaneously in contact with the touch device (so a "touch" can be a "multitouch," in reality), and this struct reports details of the specific fingers.

Definition

Unit: Neslib.Sdl3.Input

type TSdlFinger = record ... end;

See Also

Properties

Name Description
ID The finger ID
Position The location of the touch event, normalized (0...1, 0...1)
Pressure The quantity of pressure applied, normalized (0...1)
X The X-axis location of the touch event, normalized (0...1)
Y The Y-axis location of the touch event, normalized (0...1)

Operators

Name Description
Equal(TSdlFinger, TSdlFinger) Used to compare against another TSdlFinger.
Equal(TSdlFinger, Pointer) Used to compare against nil.
Implicit Used to set the value to nil.
NotEqual(TSdlFinger, TSdlFinger) Used to compare against another TSdlFinger.
NotEqual(TSdlFinger, Pointer) Used to compare against nil.

Property Descriptions

ID

The finger ID

property ID: TSdlFingerID read GetID

Type: TSdlFingerID


Position

The location of the touch event, normalized (0...1, 0...1)

property Position: TSdlPointF read GetPosition

Type: TSdlPointF


Pressure

The quantity of pressure applied, normalized (0...1)

property Pressure: Single read GetPressure

Type: Single


X

The X-axis location of the touch event, normalized (0...1)

property X: Single read GetX

Type: Single


Y

The Y-axis location of the touch event, normalized (0...1)

property Y: Single read GetY

Type: Single


Operator Descriptions

Equal(TSdlFinger, TSdlFinger)

Used to compare against another TSdlFinger.

class operator Equal(const ALeft, ARight: TSdlFinger): Boolean; inline; static

Parameters

ALeft: TSdlFinger

ARight: TSdlFinger

Returns

Boolean


Equal(TSdlFinger, Pointer)

Used to compare against nil.

class operator Equal(const ALeft: TSdlFinger; const ARight: Pointer): Boolean; inline; static

Parameters

ALeft: TSdlFinger

ARight: Pointer

Returns

Boolean


Implicit(Pointer)

Used to set the value to nil.

class operator Implicit(const AValue: Pointer): TSdlFinger; inline; static

Parameters

AValue: Pointer

Returns

TSdlFinger


NotEqual(TSdlFinger, TSdlFinger)

Used to compare against another TSdlFinger.

class operator NotEqual(const ALeft, ARight: TSdlFinger): Boolean; inline; static

Parameters

ALeft: TSdlFinger

ARight: TSdlFinger

Returns

Boolean


NotEqual(TSdlFinger, Pointer)

Used to compare against nil.

class operator NotEqual(const ALeft: TSdlFinger; const ARight: Pointer): Boolean; inline; static

Parameters

ALeft: TSdlFinger

ARight: Pointer

Returns

Boolean