mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-05-15 17:28:28 +00:00
SDL_migration.cocci: handle more renamed event fields
This commit is contained in:
parent
628130ec8f
commit
913e0a5e53
1 changed files with 95 additions and 0 deletions
|
@ -1491,6 +1491,51 @@ typedef SDL_GameControllerButton, SDL_GamepadButton;
|
||||||
+ SDL_TextInputShown
|
+ SDL_TextInputShown
|
||||||
(...)
|
(...)
|
||||||
@@
|
@@
|
||||||
|
SDL_Event e1;
|
||||||
|
@@
|
||||||
|
- e1.key.keysym.mod
|
||||||
|
+ e1.key.mod
|
||||||
|
@@
|
||||||
|
SDL_Event *e1;
|
||||||
|
@@
|
||||||
|
- e1->key.keysym.mod
|
||||||
|
+ e1->key.mod
|
||||||
|
@@
|
||||||
|
SDL_KeyboardEvent *e1;
|
||||||
|
@@
|
||||||
|
- e1->keysym.mod
|
||||||
|
+ e1->mod
|
||||||
|
@@
|
||||||
|
SDL_Event e1;
|
||||||
|
@@
|
||||||
|
- e1.key.keysym.sym
|
||||||
|
+ e1.key.key
|
||||||
|
@@
|
||||||
|
SDL_Event *e1;
|
||||||
|
@@
|
||||||
|
- e1->key.keysym.sym
|
||||||
|
+ e1->key.key
|
||||||
|
@@
|
||||||
|
SDL_KeyboardEvent *e1;
|
||||||
|
@@
|
||||||
|
- e1->keysym.sym
|
||||||
|
+ e1->key
|
||||||
|
@@
|
||||||
|
SDL_Event e1;
|
||||||
|
@@
|
||||||
|
- e1.key.keysym.scancode
|
||||||
|
+ e1.key.scancode
|
||||||
|
@@
|
||||||
|
SDL_Event *e1;
|
||||||
|
@@
|
||||||
|
- e1->key.keysym.scancode
|
||||||
|
+ e1->key.scancode
|
||||||
|
@@
|
||||||
|
SDL_KeyboardEvent *e1;
|
||||||
|
@@
|
||||||
|
- e1->keysym.scancode
|
||||||
|
+ e1->scancode
|
||||||
|
@@
|
||||||
@@
|
@@
|
||||||
- KMOD_ALT
|
- KMOD_ALT
|
||||||
+ SDL_KMOD_ALT
|
+ SDL_KMOD_ALT
|
||||||
|
@ -2443,6 +2488,11 @@ SDL_Event *e1;
|
||||||
- e1->wheel.mouseX
|
- e1->wheel.mouseX
|
||||||
+ e1->wheel.mouse_x
|
+ e1->wheel.mouse_x
|
||||||
@@
|
@@
|
||||||
|
SDL_MouseWheelEvent *e1;
|
||||||
|
@@
|
||||||
|
- e1->mouseX
|
||||||
|
+ e1->mouse_x
|
||||||
|
@@
|
||||||
SDL_Event e1;
|
SDL_Event e1;
|
||||||
@@
|
@@
|
||||||
- e1.wheel.mouseY
|
- e1.wheel.mouseY
|
||||||
|
@ -2453,6 +2503,41 @@ SDL_Event *e1;
|
||||||
- e1->wheel.mouseY
|
- e1->wheel.mouseY
|
||||||
+ e1->wheel.mouse_y
|
+ e1->wheel.mouse_y
|
||||||
@@
|
@@
|
||||||
|
SDL_MouseWheelEvent *e1;
|
||||||
|
@@
|
||||||
|
- e1->mouseY
|
||||||
|
+ e1->mouse_y
|
||||||
|
@@
|
||||||
|
SDL_Event e1;
|
||||||
|
@@
|
||||||
|
- e1.wheel.preciseX
|
||||||
|
+ e1.wheel.x
|
||||||
|
@@
|
||||||
|
SDL_Event *e1;
|
||||||
|
@@
|
||||||
|
- e1->wheel.preciseX
|
||||||
|
+ e1->wheel.x
|
||||||
|
@@
|
||||||
|
SDL_MouseWheelEvent *e1;
|
||||||
|
@@
|
||||||
|
- e1->preciseX
|
||||||
|
+ e1->x
|
||||||
|
@@
|
||||||
|
SDL_Event e1;
|
||||||
|
@@
|
||||||
|
- e1.wheel.preciseY
|
||||||
|
+ e1.wheel.y
|
||||||
|
@@
|
||||||
|
SDL_Event *e1;
|
||||||
|
@@
|
||||||
|
- e1->wheel.preciseY
|
||||||
|
+ e1->wheel.y
|
||||||
|
@@
|
||||||
|
SDL_MouseWheelEvent *e1;
|
||||||
|
@@
|
||||||
|
- e1->preciseY
|
||||||
|
+ e1->y
|
||||||
|
@@
|
||||||
SDL_Event e1;
|
SDL_Event e1;
|
||||||
@@
|
@@
|
||||||
- e1.tfinger.touchId
|
- e1.tfinger.touchId
|
||||||
|
@ -2463,6 +2548,11 @@ SDL_Event *e1;
|
||||||
- e1->tfinger.touchId
|
- e1->tfinger.touchId
|
||||||
+ e1->tfinger.touchID
|
+ e1->tfinger.touchID
|
||||||
@@
|
@@
|
||||||
|
SDL_TouchFingerEvent *e1;
|
||||||
|
@@
|
||||||
|
- e1->touchId
|
||||||
|
+ e1->touchID
|
||||||
|
@@
|
||||||
SDL_Event e1;
|
SDL_Event e1;
|
||||||
@@
|
@@
|
||||||
- e1.tfinger.fingerId
|
- e1.tfinger.fingerId
|
||||||
|
@ -2473,6 +2563,11 @@ SDL_Event *e1;
|
||||||
- e1->tfinger.fingerId
|
- e1->tfinger.fingerId
|
||||||
+ e1->tfinger.fingerID
|
+ e1->tfinger.fingerID
|
||||||
@@
|
@@
|
||||||
|
SDL_TouchFingerEvent *e1;
|
||||||
|
@@
|
||||||
|
- e1->fingerId
|
||||||
|
+ e1->fingerID
|
||||||
|
@@
|
||||||
expression e1, e2, e3, e4;
|
expression e1, e2, e3, e4;
|
||||||
@@
|
@@
|
||||||
- SDL_CreateWindow(e1, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, e2, e3, e4)
|
- SDL_CreateWindow(e1, SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, e2, e3, e4)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue