summaryrefslogtreecommitdiffhomepage
path: root/opentrack/win32-joystick.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'opentrack/win32-joystick.cpp')
-rw-r--r--opentrack/win32-joystick.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/opentrack/win32-joystick.cpp b/opentrack/win32-joystick.cpp
index b4a1f9cd..56a1b070 100644
--- a/opentrack/win32-joystick.cpp
+++ b/opentrack/win32-joystick.cpp
@@ -1,5 +1,7 @@
#include "win32-joystick.hpp"
+#ifdef _WIN32
+
LPDIRECTINPUT8& win32_joy_ctx::dinput_handle()
{
(void) CoInitialize(nullptr);
@@ -28,3 +30,5 @@ win32_joy_ctx& win32_joy_ctx::make()
static win32_joy_ctx ret;
return ret;
}
+
+#endif