From 5408345d8b1cde19a19ddf324d3439ead6e80709 Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Sat, 24 Oct 2009 03:15:42 +0000 Subject: git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@32699 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/plugins/HIDInput/src/PlugPAD.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 macosx/plugins/HIDInput/src/PlugPAD.h (limited to 'macosx/plugins/HIDInput/src/PlugPAD.h') diff --git a/macosx/plugins/HIDInput/src/PlugPAD.h b/macosx/plugins/HIDInput/src/PlugPAD.h new file mode 100644 index 00000000..514f6474 --- /dev/null +++ b/macosx/plugins/HIDInput/src/PlugPAD.h @@ -0,0 +1,35 @@ + +#ifndef __PLUG_PAD_H__ +#define __PLUG_PAD_H__ + +#include + +#define MAX_NUM_PADS 2 +#define MAX_NUM_KEYS 64 +#define MAX_NUM_AXES 32 + +typedef struct { + unsigned long button; + unsigned char reverse; + + pRecDevice device; + pRecElement element; +} keyEntry; + +typedef struct { + unsigned long axis; + unsigned char reverse; + unsigned char positive; + unsigned char lastValue; + + pRecDevice device; + pRecElement element; +} axisEntry; + +extern int gControllerType[MAX_NUM_PADS]; +extern int gNumKeys[MAX_NUM_PADS]; +extern keyEntry gKeys[MAX_NUM_PADS][MAX_NUM_KEYS]; +extern int gNumAxes[MAX_NUM_PADS]; +extern axisEntry gAxes[MAX_NUM_PADS][MAX_NUM_AXES]; + +#endif //__PLUG_PAD_H__ \ No newline at end of file -- cgit v1.2.3