mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r6293) -Codechange: Simply use KMOD_CTRL instead of KMOD_LCTRL | KMOD_RCTRL, same for KMOD_SHIFT
This commit is contained in:
parent
463ae887ea
commit
3a98d0ee1d
@ -332,7 +332,7 @@ static int PollEvent(void)
|
||||
break;
|
||||
|
||||
case SDL_MOUSEBUTTONDOWN:
|
||||
if (_rightclick_emulate && (SDL_CALL SDL_GetModState() & (KMOD_LCTRL | KMOD_RCTRL))) {
|
||||
if (_rightclick_emulate && SDL_CALL SDL_GetModState() & KMOD_CTRL) {
|
||||
ev.button.button = SDL_BUTTON_RIGHT;
|
||||
}
|
||||
|
||||
@ -473,8 +473,8 @@ static void SdlVideoMainLoop(void)
|
||||
if (cur_ticks == next_tick) {
|
||||
next_tick += 30;
|
||||
|
||||
_ctrl_pressed = !!(mod & (KMOD_LCTRL | KMOD_RCTRL));
|
||||
_shift_pressed = !!(mod & (KMOD_LSHIFT | KMOD_RSHIFT));
|
||||
_ctrl_pressed = !!(mod & KMOD_CTRL);
|
||||
_shift_pressed = !!(mod & KMOD_SHIFT);
|
||||
#ifdef _DEBUG
|
||||
_dbg_screen_rect = !!(mod & KMOD_CAPS);
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user