SDL: Don't call GetMessageTime on Xbox platforms

From 055ce096f58e139384080d6f41bbeb20a75b6f96 Mon Sep 17 00:00:00 2001
From: Erin Melucci <[EMAIL REDACTED]>
Date: Fri, 20 Sep 2024 12:23:22 +0200
Subject: [PATCH] Don't call GetMessageTime on Xbox platforms

Fixes a compilation issue due to the GAMES partition of WinAPI not including GetMessageTime
---
 src/video/windows/SDL_windowsevents.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/video/windows/SDL_windowsevents.c b/src/video/windows/SDL_windowsevents.c
index a528ed9658808..bc636d4da978f 100644
--- a/src/video/windows/SDL_windowsevents.c
+++ b/src/video/windows/SDL_windowsevents.c
@@ -716,6 +716,7 @@ static SDL_bool SkipAltGrLeftControl(WPARAM wParam, LPARAM lParam)
         return SDL_FALSE;
     }
 
+#if !defined(__XBOXONE__) && !defined(__XBOXSERIES__)
     /* Here is a trick: "Alt Gr" sends LCTRL, then RALT. We only
        want the RALT message, so we try to see if the next message
        is a RALT message. In that case, this is a false LCTRL! */
@@ -729,6 +730,7 @@ static SDL_bool SkipAltGrLeftControl(WPARAM wParam, LPARAM lParam)
             }
         }
     }
+#endif // !defined(__XBOXONE__) && !defined(__XBOXSERIES__)
     return SDL_FALSE;
 }