SDL_GamepadHasSensor(3)

SDL_GamepadHasSensor3

Return whether a gamepad has a particular sensor.

Usage

#include "SDL3/SDL.h"

bool SDL_GamepadHasSensor(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 exists, 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.