Skip to content

Commit b4d3823

Browse files
committed
allow right alt on keyboards with AltGr
1 parent 8c81030 commit b4d3823

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Source/Managers/UInputMan.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,11 +177,11 @@ namespace RTE {
177177

178178
/// Gets the state of the Right Alt key.
179179
/// @return The state of the Right Alt key.
180-
bool FlagRAltState() const { return (SDL_GetModState() & KMOD_RALT) > 0; }
180+
bool FlagRAltState() const { return (SDL_GetModState() & (KMOD_RALT | KMOD_MODE)) > 0; }
181181

182182
/// Gets the state of either Alt key.
183183
/// @return The state of either Alt key.
184-
bool FlagAltState() const { return (SDL_GetModState() & KMOD_ALT) > 0; }
184+
bool FlagAltState() const { return (SDL_GetModState() & (KMOD_ALT | KMOD_MODE)) > 0; }
185185

186186
/// Gets the state of the Left Shift key.
187187
/// @return The state of the Left Shift key.

0 commit comments

Comments
 (0)