SDL: Merge commit '8bdc25f4e4529c1faf92f9586a62956501e75300' into main

From 8bdc25f4e4529c1faf92f9586a62956501e75300 Mon Sep 17 00:00:00 2001
From: Sylvain <[EMAIL REDACTED]>
Date: Thu, 12 Jan 2023 11:55:55 +0100
Subject: [PATCH] SDL_migration.cocci:  set events

---
 build-scripts/SDL_migration.cocci | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)

diff --git a/build-scripts/SDL_migration.cocci b/build-scripts/SDL_migration.cocci
index a627ad9b4724..c7fbc96fb8d7 100644
--- a/build-scripts/SDL_migration.cocci
+++ b/build-scripts/SDL_migration.cocci
@@ -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;
 @@