mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-08-25 16:11:40 +00:00
Clarify that gamepad sensors are disabled by default
This commit is contained in:
@@ -1450,6 +1450,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_GetGamepadTouchpadFinger(SDL_Gamepad *gamep
|
||||
/**
|
||||
* Return whether a gamepad has a particular sensor.
|
||||
*
|
||||
* Sensors are disabled by default and SDL_SetGamepadSensorEnabled() is used to enable them.
|
||||
*
|
||||
* \param gamepad the gamepad to query.
|
||||
* \param type the type of sensor to query.
|
||||
* \returns true if the sensor exists, false otherwise.
|
||||
@@ -1467,6 +1469,8 @@ extern SDL_DECLSPEC bool SDLCALL SDL_GamepadHasSensor(SDL_Gamepad *gamepad, SDL_
|
||||
/**
|
||||
* Set whether data reporting for a gamepad sensor is enabled.
|
||||
*
|
||||
* Sensors are disabled by default and this function is used to enable them.
|
||||
*
|
||||
* \param gamepad the gamepad to update.
|
||||
* \param type the type of sensor to enable/disable.
|
||||
* \param enabled whether data reporting should be enabled.
|
||||
|
||||
Reference in New Issue
Block a user