ButtonsMac.hpp
Go to the documentation of this file.
1 #ifndef GOSU_BUTTONSMAC_HPP
2 #define GOSU_BUTTONSMAC_HPP
3 
4 namespace Gosu
5 {
9  enum ButtonName
10  {
11  kbRangeBegin = 0x00,
12  kbEscape = 0x35,
13  kbF1 = 0x7a,
14  kbF2 = 0x78,
15  kbF3 = 0x63,
16  kbF4 = 0x76,
17  kbF5 = 0x60,
18  kbF6 = 0x61,
19  kbF7 = 0x62,
20  kbF8 = 0x64,
21  kbF9 = 0x65,
22  kbF10 = 0x6d,
23  kbF11 = 0x67,
24  kbF12 = 0x6f,
25  kb1 = 0x12,
26  kb2 = 0x13,
27  kb3 = 0x14,
28  kb4 = 0x15,
29  kb5 = 0x17,
30  kb6 = 0x16,
31  kb7 = 0x1a,
32  kb8 = 0x1c,
33  kb9 = 0x19,
34  kb0 = 0x1d,
35  kbA = 0x00,
36  kbB = 0x0b,
37  kbC = 0x08,
38  kbD = 0x02,
39  kbE = 0x0e,
40  kbF = 0x03,
41  kbG = 0x05,
42  kbH = 0x04,
43  kbI = 0x22,
44  kbJ = 0x26,
45  kbK = 0x28,
46  kbL = 0x25,
47  kbM = 0x2e,
48  kbN = 0x2d,
49  kbO = 0x1f,
50  kbP = 0x23,
51  kbQ = 0x0c,
52  kbR = 0x0f,
53  kbS = 0x01,
54  kbT = 0x11,
55  kbU = 0x20,
56  kbV = 0x09,
57  kbW = 0x0d,
58  kbX = 0x07,
59  kbY = 0x10,
60  kbZ = 0x06,
61  kbTab = 0x30,
62  kbReturn = 0x24,
63  kbSpace = 0x31,
64  kbLeftShift = 0x38,
65  kbRightShift = 0x3c,
66  kbLeftControl = 0x3b,
68  kbLeftAlt = 0x3a,
69  kbRightAlt = 0x3d,
70  kbLeftMeta = 0x37,
71  kbRightMeta = 0x36,
72  kbBackspace = 0x33,
73  kbLeft = 0x7b,
74  kbRight = 0x7c,
75  kbUp = 0x7e,
76  kbDown = 0x7d,
77  kbHome = 0x73,
78  kbEnd = 0x77,
79  kbInsert = 0x72,
80  kbDelete = 0x75,
81  kbPageUp = 0x74,
82  kbPageDown = 0x79,
83  kbEnter = 0x4c,
84  kbNumpad1 = 0x53,
85  kbNumpad2 = 0x54,
86  kbNumpad3 = 0x55,
87  kbNumpad4 = 0x56,
88  kbNumpad5 = 0x57,
89  kbNumpad6 = 0x58,
90  kbNumpad7 = 0x59,
91  kbNumpad8 = 0x5b,
92  kbNumpad9 = 0x5c,
93  kbNumpad0 = 0x52,
94  kbNumpadAdd = 0x45,
95  kbNumpadSubtract = 0x4e,
96  kbNumpadMultiply = 0x43,
97  kbNumpadDivide = 0x4b,
98  kbRangeEnd = 0xffff,
99 
100  msRangeBegin,
102  msRight,
103  msMiddle,
104  msWheelUp,
105  msWheelDown,
106  msRangeEnd,
107 
108  gpRangeBegin,
110  gpRight,
111  gpUp,
112  gpDown,
113  gpButton0,
114  gpButton1,
115  gpButton2,
116  gpButton3,
117  gpButton4,
118  gpButton5,
119  gpButton6,
120  gpButton7,
121  gpButton8,
122  gpButton9,
123  gpButton10,
124  gpButton11,
125  gpButton12,
126  gpButton13,
127  gpButton14,
128  gpButton15,
129 
130  gp0Left,
131  gp0Right,
132  gp0Up,
133  gp0Down,
134  gp0Button0,
135  gp0Button1,
136  gp0Button2,
137  gp0Button3,
138  gp0Button4,
139  gp0Button5,
140  gp0Button6,
141  gp0Button7,
142  gp0Button8,
143  gp0Button9,
144  gp0Button10,
145  gp0Button11,
146  gp0Button12,
147  gp0Button13,
148  gp0Button14,
149  gp0Button15,
150 
151  gp1Left,
152  gp1Right,
153  gp1Up,
154  gp1Down,
155  gp1Button0,
156  gp1Button1,
157  gp1Button2,
158  gp1Button3,
159  gp1Button4,
160  gp1Button5,
161  gp1Button6,
162  gp1Button7,
163  gp1Button8,
164  gp1Button9,
165  gp1Button10,
166  gp1Button11,
167  gp1Button12,
168  gp1Button13,
169  gp1Button14,
170  gp1Button15,
171 
172  gp2Left,
173  gp2Right,
174  gp2Up,
175  gp2Down,
176  gp2Button0,
177  gp2Button1,
178  gp2Button2,
179  gp2Button3,
180  gp2Button4,
181  gp2Button5,
182  gp2Button6,
183  gp2Button7,
184  gp2Button8,
185  gp2Button9,
186  gp2Button10,
187  gp2Button11,
188  gp2Button12,
189  gp2Button13,
190  gp2Button14,
191  gp2Button15,
192 
193  gp3Left,
194  gp3Right,
195  gp3Up,
196  gp3Down,
197  gp3Button0,
198  gp3Button1,
199  gp3Button2,
200  gp3Button3,
201  gp3Button4,
202  gp3Button5,
203  gp3Button6,
204  gp3Button7,
205  gp3Button8,
206  gp3Button9,
207  gp3Button10,
208  gp3Button11,
209  gp3Button12,
210  gp3Button13,
211  gp3Button14,
212  gp3Button15,
213 
215 
216  numButtons = gpRangeEnd + 1,
217  numGamepads = 4,
218  noButton = 0xffffffff,
219 
220  kbNum = kbRangeEnd - kbRangeBegin + 1,
221  msNum = msRangeEnd - msRangeBegin + 1,
222  gpNum = gpRangeEnd - gpRangeBegin + 1,
223  gpNumPerGamepad = gpNum / (numGamepads + 1),
224  };
225 }
226 
227 #endif