From f09ff290addc66f2256534641f1dc91318da47c3 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 24 Nov 2015 01:03:55 +0100 Subject: api/shortcuts: don't unacquire joy handle pointlessly --- opentrack/win32-joystick.hpp | 4 ---- 1 file changed, 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++) -- cgit v1.2.3