diff options
Diffstat (limited to 'dinput/win32-joystick.hpp')
-rw-r--r-- | dinput/win32-joystick.hpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/dinput/win32-joystick.hpp b/dinput/win32-joystick.hpp index f42bd450..a6a4edc9 100644 --- a/dinput/win32-joystick.hpp +++ b/dinput/win32-joystick.hpp @@ -76,8 +76,6 @@ struct OTR_DINPUT_EXPORT win32_joy_ctx final win32_joy_ctx(); void refresh(); - using di_t = dinput_handle::di_t; - private: static QString guid_to_string(const GUID& guid); @@ -85,7 +83,7 @@ private: { std::vector<QString> all; joys_t joys; - dinput_handle::di_t di; + di_t di {}; static BOOL CALLBACK EnumJoysticksCallback(const DIDEVICEINSTANCE* pdidInstance, VOID* pContext); static BOOL CALLBACK EnumObjectsCallback(const DIDEVICEOBJECTINSTANCE* pdidoi, VOID* ctx); |