summaryrefslogtreecommitdiffhomepage
path: root/opentrack-logic/win32-joystick.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack-logic/win32-joystick.hpp')
-rw-r--r--opentrack-logic/win32-joystick.hpp7
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);