|
|
@ -29,8 +29,6 @@ |
|
|
|
|
|
|
|
|
|
|
|
#include <math.h> |
|
|
|
#include <math.h> |
|
|
|
|
|
|
|
|
|
|
|
#include <initguid.h> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define _GLFW_TYPE_AXIS 0 |
|
|
|
#define _GLFW_TYPE_AXIS 0 |
|
|
|
#define _GLFW_TYPE_SLIDER 1 |
|
|
|
#define _GLFW_TYPE_SLIDER 1 |
|
|
|
#define _GLFW_TYPE_BUTTON 2 |
|
|
|
#define _GLFW_TYPE_BUTTON 2 |
|
|
@ -49,18 +47,29 @@ typedef struct _GLFWobjenumWin32 |
|
|
|
int povCount; |
|
|
|
int povCount; |
|
|
|
} _GLFWobjenumWin32; |
|
|
|
} _GLFWobjenumWin32; |
|
|
|
|
|
|
|
|
|
|
|
// Define only the necessary GUIDs (it's bad enough that we're exporting these)
|
|
|
|
// Define local copies of the necessary GUIDs
|
|
|
|
//
|
|
|
|
//
|
|
|
|
DEFINE_GUID(IID_IDirectInput8W,0xbf798031,0x483a,0x4da2,0xaa,0x99,0x5d,0x64,0xed,0x36,0x97,0x00); |
|
|
|
static const GUID _glfw_IID_IDirectInput8W = {0xbf798031,0x483a,0x4da2,{0xaa,0x99,0x5d,0x64,0xed,0x36,0x97,0x00}}; |
|
|
|
DEFINE_GUID(GUID_XAxis,0xa36d02e0,0xc9f3,0x11cf,0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00); |
|
|
|
static const GUID _glfw_GUID_XAxis = {0xa36d02e0,0xc9f3,0x11cf,{0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00}}; |
|
|
|
DEFINE_GUID(GUID_YAxis,0xa36d02e1,0xc9f3,0x11cf,0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00); |
|
|
|
static const GUID _glfw_GUID_YAxis = {0xa36d02e1,0xc9f3,0x11cf,{0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00}}; |
|
|
|
DEFINE_GUID(GUID_ZAxis,0xa36d02e2,0xc9f3,0x11cf,0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00); |
|
|
|
static const GUID _glfw_GUID_ZAxis = {0xa36d02e2,0xc9f3,0x11cf,{0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00}}; |
|
|
|
DEFINE_GUID(GUID_RxAxis,0xa36d02f4,0xc9f3,0x11cf,0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00); |
|
|
|
static const GUID _glfw_GUID_RxAxis = {0xa36d02f4,0xc9f3,0x11cf,{0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00}}; |
|
|
|
DEFINE_GUID(GUID_RyAxis,0xa36d02f5,0xc9f3,0x11cf,0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00); |
|
|
|
static const GUID _glfw_GUID_RyAxis = {0xa36d02f5,0xc9f3,0x11cf,{0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00}}; |
|
|
|
DEFINE_GUID(GUID_RzAxis,0xa36d02e3,0xc9f3,0x11cf,0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00); |
|
|
|
static const GUID _glfw_GUID_RzAxis = {0xa36d02e3,0xc9f3,0x11cf,{0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00}}; |
|
|
|
DEFINE_GUID(GUID_Slider,0xa36d02e4,0xc9f3,0x11cf,0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00); |
|
|
|
static const GUID _glfw_GUID_Slider = {0xa36d02e4,0xc9f3,0x11cf,{0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00}}; |
|
|
|
DEFINE_GUID(GUID_Button,0xa36d02f0,0xc9f3,0x11cf,0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00); |
|
|
|
static const GUID _glfw_GUID_Button = {0xa36d02f0,0xc9f3,0x11cf,{0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00}}; |
|
|
|
DEFINE_GUID(GUID_POV,0xa36d02f2,0xc9f3,0x11cf,0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00); |
|
|
|
static const GUID _glfw_GUID_POV = {0xa36d02f2,0xc9f3,0x11cf,{0xbf,0xc7,0x44,0x45,0x53,0x54,0x00,0x00}}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define IID_IDirectInput8W _glfw_IID_IDirectInput8W |
|
|
|
|
|
|
|
#define GUID_XAxis _glfw_GUID_XAxis |
|
|
|
|
|
|
|
#define GUID_YAxis _glfw_GUID_YAxis |
|
|
|
|
|
|
|
#define GUID_ZAxis _glfw_GUID_ZAxis |
|
|
|
|
|
|
|
#define GUID_RxAxis _glfw_GUID_RxAxis |
|
|
|
|
|
|
|
#define GUID_RyAxis _glfw_GUID_RyAxis |
|
|
|
|
|
|
|
#define GUID_RzAxis _glfw_GUID_RzAxis |
|
|
|
|
|
|
|
#define GUID_Slider _glfw_GUID_Slider |
|
|
|
|
|
|
|
#define GUID_Button _glfw_GUID_Button |
|
|
|
|
|
|
|
#define GUID_POV _glfw_GUID_POV |
|
|
|
|
|
|
|
|
|
|
|
// Object data array for our clone of c_dfDIJoystick
|
|
|
|
// Object data array for our clone of c_dfDIJoystick
|
|
|
|
// Generated with https://github.com/elmindreda/c_dfDIJoystick2
|
|
|
|
// Generated with https://github.com/elmindreda/c_dfDIJoystick2
|
|
|
|