We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c81030 commit b4d3823Copy full SHA for b4d3823
Source/Managers/UInputMan.h
@@ -177,11 +177,11 @@ namespace RTE {
177
178
/// Gets the state of the Right Alt key.
179
/// @return The state of the Right Alt key.
180
- bool FlagRAltState() const { return (SDL_GetModState() & KMOD_RALT) > 0; }
+ bool FlagRAltState() const { return (SDL_GetModState() & (KMOD_RALT | KMOD_MODE)) > 0; }
181
182
/// Gets the state of either Alt key.
183
/// @return The state of either Alt key.
184
- bool FlagAltState() const { return (SDL_GetModState() & KMOD_ALT) > 0; }
+ bool FlagAltState() const { return (SDL_GetModState() & (KMOD_ALT | KMOD_MODE)) > 0; }
185
186
/// Gets the state of the Left Shift key.
187
/// @return The state of the Left Shift key.
0 commit comments