diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2015-11-11 14:35:46 +0100 | 
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-11-11 14:37:00 +0100 | 
| commit | e79ab73d99d3cc19e0db82cce8884589e0e93396 (patch) | |
| tree | 0c3464880be7ce73b6fb8cfa8d9df8a06d664093 | |
| parent | ef897ea95734917c3679dc9e2cad89e8d55c3099 (diff) | |
joy: slurp keys on startup
| -rw-r--r-- | opentrack/win32-joystick-shortcuts.hpp | 1 | 
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() | 
