aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2021-01-26 22:27:44 +0100
committerladevieq <ladevie.quentin@gmail.com>2021-01-26 22:27:44 +0100
commitd3b08c7e8bf808281e32fdef5e5222fb6633a5d0 (patch)
treed25b4f72694e9624ba30e112aef7849d03512c75 /src/main.cpp
parentfbe4f159bc4d9f801128fbb487e9e86d3786062c (diff)
Improve XCB keyboard inputs handling
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 774429d..a91e9e5 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -81,7 +81,7 @@ int main() {
}
case EVENT_TYPES::KEY_PRESS: {
auto move_speed = 0.01f * delta_time;
- if (wnd.keyboard[KEYS::SHIFT]) {
+ if (wnd.keyboard[KEYS::LSHIFT] || wnd.keyboard[KEYS::RSHIFT]) {
move_speed *= 2.f;
}