summaryrefslogtreecommitdiffhomepage
path: root/opentrack-dinput
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2016-08-12 17:06:35 +0200
committerStanislaw Halik <sthalik@CROOKED-SCHEMER>2016-08-12 17:11:40 +0200
commitd9577dbdf967ea5eb245dff3385ac59a0a1a0d34 (patch)
tree5b5ff1b2bd319549ff90180b16a3cc55ad3bd951 /opentrack-dinput
parent33c1683b37265001eb91024290f7137c5b3c5411 (diff)
dinput/joystick: sleep after joy get state failure
Diffstat (limited to 'opentrack-dinput')
-rw-r--r--opentrack-dinput/win32-joystick.cpp3
1 files changed, 2 insertions, 1 deletions
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;
}