New joystick API.

This commit is contained in:
Camilla Berglund
2013-04-24 19:25:42 +02:00
parent c4d856bcb2
commit 7f2eb7b15b
10 changed files with 280 additions and 461 deletions
+7 -8
View File
@@ -78,18 +78,17 @@ typedef struct _GLFWwindowNS
//------------------------------------------------------------------------
typedef struct
{
int present;
char name[256];
int present;
char name[256];
IOHIDDeviceInterface** interface;
int numAxes;
int numButtons;
int numHats;
CFMutableArrayRef axisElements;
CFMutableArrayRef buttonElements;
CFMutableArrayRef hatElements;
CFMutableArrayRef axes;
CFMutableArrayRef buttons;
CFMutableArrayRef hats;
float* axes;
unsigned char* buttons;
} _GLFWjoy;