sdlNumSensors function

int sdlNumSensors()

Count the number of sensors attached to the system right now.

\returns the number of sensors detected.

\since This function is available since SDL 2.0.9.

extern DECLSPEC int SDLCALL SDL_NumSensors(void)

Implementation

int sdlNumSensors() {
  final sdlNumSensorsLookupFunction = libSdl2
      .lookupFunction<Int32 Function(), int Function()>('SDL_NumSensors');
  return sdlNumSensorsLookupFunction();
}