SdlSensorPointerEx extension

on

Methods

close() → void sensor

Available on Pointer<SdlSensor>, provided by the SdlSensorPointerEx extension

Close a sensor previously opened with SDL_OpenSensor().
getId() int sensor

Available on Pointer<SdlSensor>, provided by the SdlSensorPointerEx extension

Get the instance ID of a sensor.
getName() String? sensor

Available on Pointer<SdlSensor>, provided by the SdlSensorPointerEx extension

Get the implementation dependent name of a sensor.
getNonPortableType() int sensor

Available on Pointer<SdlSensor>, provided by the SdlSensorPointerEx extension

Get the platform dependent type of a sensor.
getProperties() int sensor

Available on Pointer<SdlSensor>, provided by the SdlSensorPointerEx extension

Get the properties associated with a sensor.
getType() int sensor

Available on Pointer<SdlSensor>, provided by the SdlSensorPointerEx extension

Get the type of a sensor.
sdlGetData(SdlxSensorData data, {int numValues = 6}) bool sensor

Available on Pointer<SdlSensor>, provided by the SdlSensorPointerEx extension

Get the current state of an opened sensor.