summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--opentrack/win32-joystick-shortcuts.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/opentrack/win32-joystick-shortcuts.hpp b/opentrack/win32-joystick-shortcuts.hpp
index bde690c5..530545dc 100644
--- a/opentrack/win32-joystick-shortcuts.hpp
+++ b/opentrack/win32-joystick-shortcuts.hpp
@@ -39,6 +39,7 @@ struct win32_joy_ctx
qDebug() << "got joy" << guid;
for (int i = 0; i < 128; i++)
pressed[i] = false;
+ poll([&](const QString&, int idx, bool held) -> void { pressed[idx] = held; });
}
~joy()