Skip to content

Commit

Permalink
Don't call GetMessageTime on Xbox platforms
Browse files Browse the repository at this point in the history
Fixes a compilation issue due to the GAMES partition of WinAPI not including GetMessageTime
  • Loading branch information
sykhro authored and slouken committed Sep 20, 2024
1 parent ec9a9fe commit 055ce09
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/video/windows/SDL_windowsevents.c
Original file line number Diff line number Diff line change
Expand Up @@ -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! */
Expand All @@ -729,6 +730,7 @@ static SDL_bool SkipAltGrLeftControl(WPARAM wParam, LPARAM lParam)
}
}
}
#endif // !defined(__XBOXONE__) && !defined(__XBOXSERIES__)
return SDL_FALSE;
}

Expand Down

0 comments on commit 055ce09

Please sign in to comment.