1 /*****************************************************************************\
2      Snes9x - Portable Super Nintendo Entertainment System (TM) emulator.
3                 This file is licensed under the Snes9x License.
4    For further information, consult the LICENSE file in the root directory.
5 \*****************************************************************************/
6 
7 /***********************************************************************************
8   SNES9X for Mac OS (c) Copyright John Stiles
9 
10   Snes9x for Mac OS X
11 
12   (c) Copyright 2001 - 2011  zones
13   (c) Copyright 2002 - 2005  107
14   (c) Copyright 2002         PB1400c
15   (c) Copyright 2004         Alexander and Sander
16   (c) Copyright 2004 - 2005  Steven Seeger
17   (c) Copyright 2005         Ryan Vogt
18  ***********************************************************************************/
19 
20 
21 #ifndef _mac_joypad_h_
22 #define _mac_joypad_h_
23 
24 enum
25 {
26 	kISp1PUp = 0,
27 	kISp1PDn,
28 	kISp1PLf,
29 	kISp1PRt,
30 
31 	kISp2PUp,
32 	kISp2PDn,
33 	kISp2PLf,
34 	kISp2PRt,
35 
36 	kISp3PUp,
37 	kISp3PDn,
38 	kISp3PLf,
39 	kISp3PRt,
40 
41 	kISp4PUp,
42 	kISp4PDn,
43 	kISp4PLf,
44 	kISp4PRt,
45 
46 	kISp5PUp,
47 	kISp5PDn,
48 	kISp5PLf,
49 	kISp5PRt,
50 
51 	kISp6PUp,
52 	kISp6PDn,
53 	kISp6PLf,
54 	kISp6PRt,
55 
56 	kISp7PUp,
57 	kISp7PDn,
58 	kISp7PLf,
59 	kISp7PRt,
60 
61 	kISp8PUp,
62 	kISp8PDn,
63 	kISp8PLf,
64 	kISp8PRt,
65 
66 	kISp1PB,
67 	kISp1PA,
68 	kISp1PX,
69 	kISp1PY,
70 	kISp1PL,
71 	kISp1PR,
72 	kISp1PSelect,
73 	kISp1PStart,
74 
75 	kISp2PB,
76 	kISp2PA,
77 	kISp2PX,
78 	kISp2PY,
79 	kISp2PL,
80 	kISp2PR,
81 	kISp2PSelect,
82 	kISp2PStart,
83 
84 	kISp3PB,
85 	kISp3PA,
86 	kISp3PX,
87 	kISp3PY,
88 	kISp3PL,
89 	kISp3PR,
90 	kISp3PSelect,
91 	kISp3PStart,
92 
93 	kISp4PB,
94 	kISp4PA,
95 	kISp4PX,
96 	kISp4PY,
97 	kISp4PL,
98 	kISp4PR,
99 	kISp4PSelect,
100 	kISp4PStart,
101 
102 	kISp5PB,
103 	kISp5PA,
104 	kISp5PX,
105 	kISp5PY,
106 	kISp5PL,
107 	kISp5PR,
108 	kISp5PSelect,
109 	kISp5PStart,
110 
111 	kISp6PB,
112 	kISp6PA,
113 	kISp6PX,
114 	kISp6PY,
115 	kISp6PL,
116 	kISp6PR,
117 	kISp6PSelect,
118 	kISp6PStart,
119 
120 	kISp7PB,
121 	kISp7PA,
122 	kISp7PX,
123 	kISp7PY,
124 	kISp7PL,
125 	kISp7PR,
126 	kISp7PSelect,
127 	kISp7PStart,
128 
129 	kISp8PB,
130 	kISp8PA,
131 	kISp8PX,
132 	kISp8PY,
133 	kISp8PL,
134 	kISp8PR,
135 	kISp8PSelect,
136 	kISp8PStart,
137 
138 	kISpFastForward,
139 	kISpFreeze,
140 	kISpDefrost,
141 	kISpScreenshot,
142 	kISpEsc,
143 	kISpSPC,
144 	kISpMouseL,
145 	kISpMouseR,
146 	kISpScopeT,
147 	kISpScopeP,
148 	kISpScopeC,
149 	kISpOffScreen,
150 	kISpFunction,
151 	kISpAlt,
152 	kISpFFUp,
153 	kISpFFDown,
154 	kISpTC,
155 
156 	kNeedCount
157 };
158 
159 void SetUpHID (void);
160 void ReleaseHID (void);
161 void ConfigureHID (void);
162 void ClearPadSetting (void);
163 void SaveControllerSettings (void);
164 void LoadControllerSettings (void);
165 long ISpKeyIsPressed (int);
166 void JoypadScanDirection (int, uint32 *);
167 
168 #endif
169