diff options
| author | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-10-24 03:15:42 +0000 |
|---|---|---|
| committer | SND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97> | 2009-10-24 03:15:42 +0000 |
| commit | 5408345d8b1cde19a19ddf324d3439ead6e80709 (patch) | |
| tree | fd7934308384396b4ad92b547e8804a696c480e8 /macosx/plugins/HIDInput/src/PlugPAD.h | |
| parent | f2f1033882e0643f05f3027f2c812f425f67a879 (diff) | |
| download | pcsxr-5408345d8b1cde19a19ddf324d3439ead6e80709.tar.gz | |
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@32699 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/plugins/HIDInput/src/PlugPAD.h')
| -rw-r--r-- | macosx/plugins/HIDInput/src/PlugPAD.h | 35 |
1 files changed, 35 insertions, 0 deletions
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 <IOKit/hid/IOHIDUsageTables.h> + +#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 |
