TSdlSensorID
This is a unique ID for a sensor for the time it is connected to the system, and is never reused for the lifetime of the application.
Definition
Unit: Neslib.Sdl3.Input
Properties
Name | Description |
---|---|
Kind | The type of the sensor. |
Name | The implementation dependent name of the sensor. |
NonPortableType | Get the platform dependent type of a sensor, |
Operators
Name | Description |
---|---|
Equal(TSdlSensorID, TSdlSensorID) | Used to compare against another TSdlSensorID. |
Equal(TSdlSensorID, Cardinal) | Used to compare against 0 . |
Implicit | Used to set the value to 0 . |
NotEqual(TSdlSensorID, TSdlSensorID) | Used to compare against another TSdlSensorID. |
NotEqual(TSdlSensorID, Cardinal) | Used to compare against 0 . |
Property Descriptions
Kind
The type of the sensor.
This can be used before any sensors are opened.
property Kind: TSdlSensorKind read GetKind
Type: TSdlSensorKind
Exceptions
ESdlError
: Raised on failure.
Name
The implementation dependent name of the sensor.
This can be used before any sensors are opened.
property Name: String read GetName
Type: String
Exceptions
ESdlError
: Raised on failure.
NonPortableType
Get the platform dependent type of a sensor,
This can be used before any sensors are opened.
property NonPortableType: Integer read GetNonPortableType
Type: Integer
Exceptions
ESdlError
: Raised on failure.
Operator Descriptions
Equal(TSdlSensorID, TSdlSensorID)
Used to compare against another TSdlSensorID.
class operator Equal(const ALeft, ARight: TSdlSensorID): Boolean; inline; static
Parameters
ALeft
: TSdlSensorID
ARight
: TSdlSensorID
Returns
Boolean
Equal(TSdlSensorID, Cardinal)
Used to compare against 0
.
class operator Equal(const ALeft: TSdlSensorID; const ARight: Cardinal): Boolean; inline; static
Parameters
ALeft
: TSdlSensorID
ARight
: Cardinal
Returns
Boolean
Implicit(Cardinal)
Used to set the value to 0
.
class operator Implicit(const AValue: Cardinal): TSdlSensorID; inline; static
Parameters
AValue
: Cardinal
Returns
NotEqual(TSdlSensorID, TSdlSensorID)
Used to compare against another TSdlSensorID.
class operator NotEqual(const ALeft, ARight: TSdlSensorID): Boolean; inline; static
Parameters
ALeft
: TSdlSensorID
ARight
: TSdlSensorID
Returns
Boolean
NotEqual(TSdlSensorID, Cardinal)
Used to compare against 0
.
class operator NotEqual(const ALeft: TSdlSensorID; const ARight: Cardinal): Boolean; inline; static
Parameters
ALeft
: TSdlSensorID
ARight
: Cardinal
Returns
Boolean