From d9577dbdf967ea5eb245dff3385ac59a0a1a0d34 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 12 Aug 2016 17:06:35 +0200 Subject: dinput/joystick: sleep after joy get state failure --- opentrack-dinput/win32-joystick.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opentrack-dinput/win32-joystick.cpp b/opentrack-dinput/win32-joystick.cpp index 4765d4e9..18500a0d 100644 --- a/opentrack-dinput/win32-joystick.cpp +++ b/opentrack-dinput/win32-joystick.cpp @@ -71,7 +71,8 @@ bool win32_joy_ctx::poll_axis(const QString &guid, int* axes) if (FAILED(hr = joy_handle->GetDeviceState(sizeof(js), &js))) { - qDebug() << "joy get state failed" << guid << hr; + //qDebug() << "joy get state failed" << guid << hr; + portable::sleep(50); continue; } -- cgit v1.2.3