From 9027f80b86e8caddd3245170460450a096afc33f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 7 Jul 2016 11:48:28 +0200 Subject: logic/joystick: initialize dinput handle ASAP --- opentrack-logic/win32-joystick.hpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'opentrack-logic/win32-joystick.hpp') diff --git a/opentrack-logic/win32-joystick.hpp b/opentrack-logic/win32-joystick.hpp index 0da5554b..ab6ebc7c 100644 --- a/opentrack-logic/win32-joystick.hpp +++ b/opentrack-logic/win32-joystick.hpp @@ -71,6 +71,13 @@ struct OPENTRACK_LOGIC_EXPORT win32_joy_ctx win32_joy_ctx(); void refresh(); static di_t& make_di(); + + class di_initializer final + { + static di_initializer self; + di_initializer(); + }; + private: static QString guid_to_string(const GUID guid); -- cgit v1.2.3