Browse Source

Don't call GetMessageTime on Xbox platforms

Fixes a compilation issue due to the GAMES partition of WinAPI not including GetMessageTime
Erin Melucci 11 months ago
parent
commit
055ce096f5
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/video/windows/SDL_windowsevents.c

+ 2 - 0
src/video/windows/SDL_windowsevents.c

@@ -716,6 +716,7 @@ static SDL_bool SkipAltGrLeftControl(WPARAM wParam, LPARAM lParam)
         return SDL_FALSE;
         return SDL_FALSE;
     }
     }
 
 
+#if !defined(__XBOXONE__) && !defined(__XBOXSERIES__)
     /* Here is a trick: "Alt Gr" sends LCTRL, then RALT. We only
     /* 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
        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! */
        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;
     return SDL_FALSE;
 }
 }