SDL_GamepadSensorEnabled(3)

SDL_GamepadSensorEnabled3

Query whether sensor data reporting is enabled for a gamepad.

Usage

#include "SDL3/SDL.h"

bool SDL_GamepadSensorEnabled(SDL_Gamepad *gamepad, SDL_SensorType type);

Header file

Defined in SDL3/SDL_gamepad.h

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.

From libsdl3-doc 3.2.10+ds-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.