logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_SetGamepadSensorEnabled - Set whether data reporting for a gamepad sensor is enabled.

Availability

       This function is available since SDL 3.2.0.

Function Parameters

gamepad
              the gamepad to update.

       type   the type of sensor to enable/disable.

       enabled
              whether data reporting should be enabled.

Header File

       Defined in SDL3/SDL_gamepad.h

Name

       SDL_SetGamepadSensorEnabled - Set whether data reporting for a gamepad sensor is enabled.

Return Value

       Returns true on success or false on failure; call

       SDL_GetError () for more information.

See Also

(3), SDL_GamepadHasSensor(3), (3), SDL_GamepadSensorEnabled(3)

Simple Directmedia Layer                           SDL 3.2.10                     SDL_SetGamepadSensorEnabled(3)

Synopsis

#include"SDL3/SDL.h"boolSDL_SetGamepadSensorEnabled(SDL_Gamepad*gamepad,SDL_SensorTypetype,boolenabled);
return

See Also