summaryrefslogtreecommitdiffhomepage
path: root/opentrack
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack')
-rw-r--r--opentrack/win32-joystick-shortcuts.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/opentrack/win32-joystick-shortcuts.hpp b/opentrack/win32-joystick-shortcuts.hpp
index f3bca827..e54596bd 100644
--- a/opentrack/win32-joystick-shortcuts.hpp
+++ b/opentrack/win32-joystick-shortcuts.hpp
@@ -67,9 +67,6 @@ struct win32_joy_ctx
{
HRESULT hr;
bool ok = false;
-
- if (first_timer.elapsed_ms() > first_event_delay_ms)
- first = true;
for (int i = 0; i < 5; i++)
{
@@ -99,6 +96,8 @@ struct win32_joy_ctx
qDebug() << "joy get state failed" << guid << hr;
return false;
}
+
+ first |= first_timer.elapsed_ms() > first_event_delay_ms;
for (int i = 0; i < 128; i++)
{