SDL_migration.cocci: Add joystick/gamepad event state functions.
Build (All) / Create test plan (push) Has been cancelled
Build (All) / level1 (push) Has been cancelled
Build (All) / level2 (push) Has been cancelled

(cherry picked from commit e1aaebff87)
This commit is contained in:
Ryan C. Gordon
2026-05-30 14:06:15 -04:00
parent 5b54dcc16d
commit b3dca03ebf
+36
View File
@@ -111,6 +111,42 @@ expression e1;
- SDL_GetEventState(e1)
+ SDL_EventEnabled(e1)
// SDL_JoystickEventState() - replaced with SDL_SetJoystickEventsEnabled()
@@
@@
(
- SDL_JoystickEventState(SDL_IGNORE)
+ SDL_SetJoystickEventsEnabled(false)
|
- SDL_JoystickEventState(SDL_DISABLE)
+ SDL_SetJoystickEventsEnabled(false)
|
- SDL_JoystickEventState(SDL_ENABLE)
+ SDL_SetJoystickEventsEnabled(true)
|
- SDL_JoystickEventState(SDL_QUERY)
+ SDL_JoystickEventsEnabled()
)
// SDL_GameControllerEventState() - replaced with SDL_SetGamepadEventsEnabled()
@@
@@
(
- SDL_GameControllerEventState(SDL_IGNORE)
+ SDL_SetGamepadEventsEnabled(false)
|
- SDL_GameControllerEventState(SDL_DISABLE)
+ SDL_SetGamepadEventsEnabled(false)
|
- SDL_GameControllerEventState(SDL_ENABLE)
+ SDL_SetGamepadEventsEnabled(true)
|
- SDL_GameControllerEventState(SDL_QUERY)
+ SDL_GamepadEventsEnabled()
)
@@
expression e;
@@