diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-07 11:48:28 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-07-07 11:48:28 +0200 |
commit | 9027f80b86e8caddd3245170460450a096afc33f (patch) | |
tree | 92bb4476e9906a222b5c91fc2341eb6c5c7368a2 /opentrack-logic/win32-joystick.hpp | |
parent | fa9dcb9da8ad8a0b164a4008d5b493a268d682cf (diff) |
logic/joystick: initialize dinput handle ASAP
Diffstat (limited to 'opentrack-logic/win32-joystick.hpp')
-rw-r--r-- | opentrack-logic/win32-joystick.hpp | 7 |
1 files changed, 7 insertions, 0 deletions
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); |