From 0bdec4ea2e41c660400622fbdb41baea2104b84c Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 12 Nov 2019 20:17:17 +0100 Subject: [PATCH] - fixed: Events were processed as key events without checking their type. --- source/common/inputstate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/common/inputstate.cpp b/source/common/inputstate.cpp index a81ca2083..4036dfc0f 100644 --- a/source/common/inputstate.cpp +++ b/source/common/inputstate.cpp @@ -60,7 +60,7 @@ void InputState::AddEvent(const event_t *ev) case KEY_MOUSE5: mouseSetBit(THUMB2_MOUSE, ev->type == EV_KeyDown); break; default: break; } + keySetState(ev->data1, ev->type == EV_KeyDown); + if (ev->data2) keySetChar(ev->data2); } - keySetState(ev->data1, ev->type == EV_KeyDown); - if (ev->data2) keySetChar(ev->data2); }