mirror of https://github.com/libsdl-org/SDL
SDL_migration.cocci: set events
This commit is contained in:
parent
ed1bdf32ee
commit
8bdc25f4e4
|
@ -31,6 +31,31 @@
|
|||
// So this file is a set of many semantic patches, mostly independant.
|
||||
|
||||
|
||||
// SDL_EventState() - replaced with SDL_SetEventEnabled()
|
||||
@@
|
||||
expression e1;
|
||||
@@
|
||||
(
|
||||
- SDL_EventState(e1, SDL_IGNORE)
|
||||
+ SDL_SetEventEnabled(e1, SDL_FALSE)
|
||||
|
|
||||
- SDL_EventState(e1, SDL_DISABLE)
|
||||
+ SDL_SetEventEnabled(e1, SDL_FALSE)
|
||||
|
|
||||
- SDL_EventState(e1, SDL_ENABLE)
|
||||
+ SDL_SetEventEnabled(e1, SDL_TRUE)
|
||||
|
|
||||
- SDL_EventState(e1, SDL_QUERY)
|
||||
+ SDL_EventEnabled(e1)
|
||||
)
|
||||
|
||||
// SDL_GetEventState() - replaced with SDL_EventEnabled()
|
||||
@@
|
||||
expression e1;
|
||||
@@
|
||||
- SDL_GetEventState(e1)
|
||||
+ SDL_EventEnabled(e1)
|
||||
|
||||
@@
|
||||
expression e;
|
||||
@@
|
||||
|
|
Loading…
Reference in New Issue