Skip to content

Commit 661b21c

Browse files
committed
flag AltGr (de keyboards) as alt.
1 parent 2cc08c4 commit 661b21c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/Managers/UInputMan.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ namespace RTE {
188188

189189
/// Gets the state of either Alt key.
190190
/// @return The state of either Alt key.
191-
bool FlagAltState() const { return (SDL_GetModState() & SDL_KMOD_ALT) > 0; }
191+
bool FlagAltState() const { return (SDL_GetModState() & SDL_KMOD_ALT | SDL_KMOD_MODE) > 0; }
192192

193193
/// Gets the state of the Left Shift key.
194194
/// @return The state of the Left Shift key.

0 commit comments

Comments
 (0)