summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerInterface/DInput/DInput.h
diff options
context:
space:
mode:
authorJasper St. Pierre <jstpierre@mecheye.net>2013-12-31 14:07:57 -0500
committerJasper St. Pierre <jstpierre@mecheye.net>2013-12-31 14:07:57 -0500
commit16824d5fd17b43b156706bf02a8063b389604766 (patch)
treeb0eedc645badbea316ff59c125eaf808b28777ec /Source/Core/InputCommon/ControllerInterface/DInput/DInput.h
parent43e618682e8093602fc83dfa902ee7ae3fd3a4f6 (diff)
parent34692ab826abc8f8faa61bdb2280b742424528f1 (diff)
Merge branch 'fuck-you-src-i-hate-you'
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/DInput/DInput.h')
-rw-r--r--Source/Core/InputCommon/ControllerInterface/DInput/DInput.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/DInput/DInput.h b/Source/Core/InputCommon/ControllerInterface/DInput/DInput.h
new file mode 100644
index 0000000000..86452c23ab
--- /dev/null
+++ b/Source/Core/InputCommon/ControllerInterface/DInput/DInput.h
@@ -0,0 +1,31 @@
+#ifndef _CIFACE_DINPUT_H_
+#define _CIFACE_DINPUT_H_
+
+#include "../Device.h"
+
+#define DINPUT_SOURCE_NAME "DInput"
+
+#define DIRECTINPUT_VERSION 0x0800
+#define WIN32_LEAN_AND_MEAN
+#define NOMINMAX
+#include <Windows.h>
+#include <dinput.h>
+
+#include <list>
+
+namespace ciface
+{
+namespace DInput
+{
+
+//BOOL CALLBACK DIEnumEffectsCallback(LPCDIEFFECTINFO pdei, LPVOID pvRef);
+BOOL CALLBACK DIEnumDeviceObjectsCallback(LPCDIDEVICEOBJECTINSTANCE lpddoi, LPVOID pvRef);
+BOOL CALLBACK DIEnumDevicesCallback(LPCDIDEVICEINSTANCE lpddi, LPVOID pvRef);
+std::string GetDeviceName(const LPDIRECTINPUTDEVICE8 device);
+
+void Init(std::vector<Core::Device*>& devices, HWND hwnd);
+
+}
+}
+
+#endif