summaryrefslogtreecommitdiffhomepage
path: root/dinput/dinput.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-01-13 14:14:20 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-01-13 14:24:05 +0100
commite0f0353dd5314d7836a7d3030e4895865f2e62ff (patch)
tree66a53ed743f36c1840c035841c80c42e55534f7f /dinput/dinput.hpp
parentc6cdf9cfc701b5c9f02f37178b8364abd0bf4d93 (diff)
dinput: don't include <windows.h> in headers
Issue: #583
Diffstat (limited to 'dinput/dinput.hpp')
-rw-r--r--dinput/dinput.hpp16
1 files changed, 14 insertions, 2 deletions
diff --git a/dinput/dinput.hpp b/dinput/dinput.hpp
index e9908a94..09c9a30b 100644
--- a/dinput/dinput.hpp
+++ b/dinput/dinput.hpp
@@ -15,7 +15,19 @@
#undef DIRECTINPUT_VERSION
#define DIRECTINPUT_VERSION 0x800
-#include <dinput.h>
+struct IDirectInputDevice8A;
+typedef struct IDirectInputDevice8A IDirectInputDevice8A;
+struct IDirectInput8A;
+typedef struct IDirectInput8A IDirectInput8A;
+struct _GUID;
+typedef struct _GUID GUID;
+struct _DIDATAFORMAT;
+typedef struct _DIDATAFORMAT DIDATAFORMAT;
+typedef int BOOL;
+struct DIDEVICEINSTANCEA;
+typedef struct DIDEVICEINSTANCEA DIDEVICEINSTANCEA;
+struct DIDEVICEOBJECTINSTANCEA;
+typedef struct DIDEVICEOBJECTINSTANCEA DIDEVICEOBJECTINSTANCEA;
// XXX TODO -sh 20190209
// keybinding_worker and joystick context are badly named
@@ -39,5 +51,5 @@ public:
operator bool() const;
operator diptr() const;
- static bool poll_device(LPDIRECTINPUTDEVICE8 dev);
+ static bool poll_device(IDirectInputDevice8A* dev);
};