fix: revert boggus merge in sdl_v

it fixes ctrl and shift buttons not working
Fixes issue #5
This commit is contained in:
2024-04-27 09:33:03 +01:00
parent 117de7a18e
commit 12ef19719d

View File

@@ -706,11 +706,6 @@ void VideoDriver_SDL::InputLoop()
int numkeys;
Uint8 *keys = SDL_GetKeyState(&numkeys);
bool old_ctrl_pressed = _ctrl_pressed;
_ctrl_pressed = !!(mod & KMOD_CTRL);
_shift_pressed = !!(mod & KMOD_SHIFT);
/* Speedup when pressing tab, except when using ALT+TAB
* to switch to another application. */
this->fast_forward_key_pressed = keys[SDLK_TAB] && (mod & KMOD_ALT) == 0;
@@ -723,6 +718,7 @@ void VideoDriver_SDL::InputLoop()
(keys[SDLK_DOWN] ? 8 : 0);
if (old_ctrl_pressed != _ctrl_pressed) HandleCtrlChanged();
old_ctrl_pressed = _ctrl_pressed;
#ifdef __ANDROID__
if (!this->set_clipboard_text.empty()) {