Skip to content

TSdlTouch

A touch device

Definition

Unit: Neslib.Sdl3.Input

type TSdlTouch = record ... end;

Properties

Name Description
Devices A list of registered touch devices.
DeviceType The type of the given touch device.
Fingers A list of active fingers for a given touch device.
Mouse A virtual touch device used for touch events simulated with mouse input.
Name The touch device name as reported from the driver.

Operators

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

Property Descriptions

Devices

A list of registered touch devices.

On some platforms SDL first sees the touch device if it was actually used. Therefore the returned list might be empty, although devices are available. After using all devices at least once the number will be correct.

class property Devices: TArray<TSdlTouch> read GetDevices

Type: TArray<TSdlTouch>

Exceptions

ESdlError: Raised on failure.


DeviceType

The type of the given touch device.

property DeviceType: TSdlTouchDeviceType read GetDeviceType

Type: TSdlTouchDeviceType


Fingers

A list of active fingers for a given touch device.

property Fingers: TArray<TSdlFinger> read GetFingers

Type: TArray<TSdlFinger>

Exceptions

ESdlError: Raised on failure.


Mouse

A virtual touch device used for touch events simulated with mouse input.

class property Mouse: TSdlTouch read GetMouse

Type: TSdlTouch


Name

The touch device name as reported from the driver.

property Name: String read GetName

Type: String

Exceptions

ESdlError: Raised on failure.


Operator Descriptions

Equal(TSdlTouch, TSdlTouch)

Used to compare against another TSdlTouch.

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

Parameters

ALeft: TSdlTouch

ARight: TSdlTouch

Returns

Boolean


Equal(TSdlTouch, Pointer)

Used to compare against nil.

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

Parameters

ALeft: TSdlTouch

ARight: Pointer

Returns

Boolean


Implicit(Pointer)

Used to set the value to nil.

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

Parameters

AValue: Pointer

Returns

TSdlTouch


NotEqual(TSdlTouch, TSdlTouch)

Used to compare against another TSdlTouch.

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

Parameters

ALeft: TSdlTouch

ARight: TSdlTouch

Returns

Boolean


NotEqual(TSdlTouch, Pointer)

Used to compare against nil.

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

Parameters

ALeft: TSdlTouch

ARight: Pointer

Returns

Boolean