mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-05 17:36:25 +00:00
Updated gamepad, joystick, sensor APIs, removing device indices
Instead of indexing into an internal list of devices which requires locking, we return a list of device IDs which can then be queried individually. Reference: https://github.com/libsdl-org/SDL/issues/6889
This commit is contained in:
@@ -109,7 +109,7 @@ struct SDL_Joystick
|
||||
Uint64 led_expiration _guarded;
|
||||
|
||||
SDL_bool attached _guarded;
|
||||
SDL_bool is_game_controller _guarded;
|
||||
SDL_bool is_gamepad _guarded;
|
||||
SDL_bool delayed_guide_button _guarded; /* SDL_TRUE if this device has the guide button event delayed */
|
||||
SDL_JoystickPowerLevel epowerlevel _guarded; /* power level of this joystick, SDL_JOYSTICK_POWER_UNKNOWN if not supported */
|
||||
|
||||
|
Reference in New Issue
Block a user