summaryrefslogtreecommitdiffhomepage
path: root/opentrack/win32-joystick.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack/win32-joystick.hpp')
-rw-r--r--opentrack/win32-joystick.hpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/opentrack/win32-joystick.hpp b/opentrack/win32-joystick.hpp
index f7629c3d..e68ea2c6 100644
--- a/opentrack/win32-joystick.hpp
+++ b/opentrack/win32-joystick.hpp
@@ -70,9 +70,6 @@ private:
void release();
void refresh(bool first);
- struct joy;
- static std::unordered_map<QString, std::shared_ptr<joy>>& joys();
-
struct joy
{
LPDIRECTINPUTDEVICE8 joy_handle;
@@ -97,6 +94,8 @@ private:
void release();
bool poll(fn f);
};
+
+ std::unordered_map<QString, std::shared_ptr<joy>> joys;
class enum_state
{