summaryrefslogtreecommitdiffhomepage
path: root/dinput/dinput.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'dinput/dinput.hpp')
-rw-r--r--dinput/dinput.hpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/dinput/dinput.hpp b/dinput/dinput.hpp
index 59873527..0f737ca5 100644
--- a/dinput/dinput.hpp
+++ b/dinput/dinput.hpp
@@ -8,16 +8,17 @@
#pragma once
-#ifdef _WIN32
-
#include "export.hpp"
+#ifdef Q_MOC_RUN
+typedef void* LPDIRECTINPUT8;
+#else
#ifndef DIRECTINPUT_VERSION
# define DIRECTINPUT_VERSION 0x800
-#endif
#include <dinput.h>
-
+#endif
#include <atomic>
+#endif
class OPENTRACK_DINPUT_EXPORT dinput_handle final
{
@@ -53,5 +54,3 @@ public:
static di_t make_di();
dinput_handle() = delete;
};
-
-#endif