SDL_GamepadSensorEnabled - Man Page

Query whether sensor data reporting is enabled for a gamepad.

Synopsis

#include <SDL3/SDL_gamepad.h>

bool SDL_GamepadSensorEnabled(SDL_Gamepad *gamepad, SDL_SensorType type);

Function Parameters

gamepad

the gamepad to query.

type

the type of sensor to query.

Return Value

Returns true if the sensor is enabled, false otherwise.

Availability

This function is available since SDL 3.2.0.

See Also

SDL_SetGamepadSensorEnabled(3)

Referenced By

SDL_SetGamepadSensorEnabled(3).

SDL 3.2.16 Simple Directmedia Layer SDL3 FUNCTIONS