getId method

int getId()

Get the instance ID of a sensor.

\param sensor the SDL_Sensor object to inspect. \returns the sensor instance ID, or 0 on failure; call SDL_GetError() for more information.

\since This function is available since SDL 3.2.0.

extern SDL_DECLSPEC SDL_SensorID SDLCALL SDL_GetSensorID(SDL_Sensor *sensor)

Implementation

int getId() => sdlGetSensorId(this);