diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-01-29 11:04:10 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2024-01-29 11:04:10 +0100 |
commit | a5daacc2d5ccfe1255aeb18a1a5e557551b7449a (patch) | |
tree | 28e954b3917d27c50e3e674ab17df7d36ffd7e91 /src | |
parent | b2bf666510ae7e4d4fa71f7ab2de4728a050ef3c (diff) | |
download | mana-a5daacc2d5ccfe1255aeb18a1a5e557551b7449a.tar.gz mana-a5daacc2d5ccfe1255aeb18a1a5e557551b7449a.tar.bz2 mana-a5daacc2d5ccfe1255aeb18a1a5e557551b7449a.tar.xz mana-a5daacc2d5ccfe1255aeb18a1a5e557551b7449a.zip |
Fixed another crash due to incomplete SDL2 upgrade
SDL_GetKeyboardState array needs to be indexed by scan codes.
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/viewport.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index 96a1d79c..3fb11d2c 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -312,7 +312,7 @@ void Viewport::_followMouse() // We create a mouse event and send it to mouseDragged. const Uint8 *keys = SDL_GetKeyboardState(nullptr); gcn::MouseEvent mouseEvent(nullptr, - (keys[SDLK_LSHIFT] || keys[SDLK_RSHIFT]), + (keys[SDL_SCANCODE_LSHIFT] || keys[SDL_SCANCODE_RSHIFT]), false, false, false, |