summaryrefslogtreecommitdiffhomepage
path: root/opentrack/win32-joystick.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-12-06 20:13:42 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-12-06 20:13:42 +0100
commit75b4a6e3a32b4345941e15953d55572384eb210e (patch)
tree8867dfd025b1358eaf675749afa7f6319baa2679 /opentrack/win32-joystick.hpp
parentdcd4df5e49e6207273c961069d14ce42ad83d147 (diff)
api/joy: prevent idempotent keypressed passed to receiver
Diffstat (limited to 'opentrack/win32-joystick.hpp')
-rw-r--r--opentrack/win32-joystick.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/opentrack/win32-joystick.hpp b/opentrack/win32-joystick.hpp
index e68ea2c6..df00aee7 100644
--- a/opentrack/win32-joystick.hpp
+++ b/opentrack/win32-joystick.hpp
@@ -76,6 +76,7 @@ private:
QString guid, name;
bool pressed[128];
Timer first_timer;
+ DIJOYSTATE2 js_old;
joy(LPDIRECTINPUTDEVICE8 handle, const QString& guid, const QString& name)
: joy_handle(handle), guid(guid), name(name)