Scroll to navigation

SDL_JoystickSensorEnabled(3) SDL3 FUNCTIONS SDL_JoystickSensorEnabled(3)

NAME

SDL_JoystickSensorEnabled - Query whether sensor data reporting is enabled for a joystick.

SYNOPSIS

#include <SDL3/SDL_joystick.h>
bool SDL_JoystickSensorEnabled(SDL_Joystick *joystick, SDL_SensorType type);

FUNCTION PARAMETERS

the joystick to query.
the type of sensor to query.

RETURN VALUE

Returns true if the sensor is enabled, false otherwise.

THREAD SAFETY

It is safe to call this function from any thread.

AVAILABILITY

This function is available since SDL 3.6.0.

SEE ALSO

SDL_SetJoystickSensorEnabled(3)

SDL 3.5.0 Simple Directmedia Layer