From e79ab73d99d3cc19e0db82cce8884589e0e93396 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 11 Nov 2015 14:35:46 +0100 Subject: joy: slurp keys on startup --- opentrack/win32-joystick-shortcuts.hpp | 1 + 1 file changed, 1 insertion(+) (limited to 'opentrack') 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() -- cgit v1.2.3