getName method

String? getName()

Get the implementation dependent name of a sensor.

\param sensor the SDL_Sensor object. \returns the sensor name or NULL on failure; call SDL_GetError() for more information.

\since This function is available since SDL 3.2.0.

extern SDL_DECLSPEC const char * SDLCALL SDL_GetSensorName(SDL_Sensor *sensor)

Implementation

String? getName() => sdlGetSensorName(this);