summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-11-24 01:03:55 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-11-24 01:03:55 +0100
commitf09ff290addc66f2256534641f1dc91318da47c3 (patch)
treeb86de0867edd26fff9d6424c057d9012ae66f9eb
parentc72948a8fcec675f5ddb059d6ad5e5d6c10f0691 (diff)
api/shortcuts: don't unacquire joy handle pointlessly
-rw-r--r--opentrack/win32-joystick.hpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/opentrack/win32-joystick.hpp b/opentrack/win32-joystick.hpp
index ed0b4412..b08da6c8 100644
--- a/opentrack/win32-joystick.hpp
+++ b/opentrack/win32-joystick.hpp
@@ -103,8 +103,6 @@ struct OPENTRACK_EXPORT win32_joy_ctx
for (int i = 0; i < 8; i++)
axes[i] = values[i];
- (void) joy_handle->Unacquire();
-
return true;
}
@@ -242,8 +240,6 @@ private:
return false;
}
- (void) joy_handle->Unacquire();
-
first |= first_timer.elapsed_ms() > first_event_delay_ms;
for (int i = 0; i < 128; i++)