diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2018-06-26 22:26:07 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2018-06-26 23:05:21 +0200 |
commit | 1cfafd9df6e334ac436cc4ffd78de6341b9caa42 (patch) | |
tree | 7a7ba14607c9a9df2f4626afa6fda90bf1988f57 /dinput/win32-joystick.hpp | |
parent | d65936200a2756e6619a109fa6fa673b91df802e (diff) |
dinput: simplify di_t
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); |