ButtonsMac.hpp
Go to the documentation of this file.
00001 #ifndef GOSU_BUTTONSMAC_HPP
00002 #define GOSU_BUTTONSMAC_HPP
00003 
00004 namespace Gosu
00005 {
00009     enum ButtonName
00010     {
00011         kbRangeBegin = 0x00,
00012         kbEscape = 0x35,
00013         kbF1 = 0x7a,
00014         kbF2 = 0x78,
00015         kbF3 = 0x63,
00016         kbF4 = 0x76,
00017         kbF5 = 0x60,
00018         kbF6 = 0x61,
00019         kbF7 = 0x62,
00020         kbF8 = 0x64,
00021         kbF9 = 0x65,
00022         kbF10 = 0x6d,
00023         kbF11 = 0x67,
00024         kbF12 = 0x6f,
00025         kb1 = 0x12,
00026         kb2 = 0x13,
00027         kb3 = 0x14,
00028         kb4 = 0x15,
00029         kb5 = 0x17,
00030         kb6 = 0x16,
00031         kb7 = 0x1a,
00032         kb8 = 0x1c,
00033         kb9 = 0x19,
00034         kb0 = 0x1d,
00035         kbA = 0x00,
00036         kbB = 0x0b,
00037         kbC = 0x08,
00038         kbD = 0x02,
00039         kbE = 0x0e,
00040         kbF = 0x03,
00041         kbG = 0x05,
00042         kbH = 0x04,
00043         kbI = 0x22,
00044         kbJ = 0x26,
00045         kbK = 0x28,
00046         kbL = 0x25,
00047         kbM = 0x2e,
00048         kbN = 0x2d,
00049         kbO = 0x1f,
00050         kbP = 0x23,
00051         kbQ = 0x0c,
00052         kbR = 0x0f,
00053         kbS = 0x01,
00054         kbT = 0x11,
00055         kbU = 0x20,
00056         kbV = 0x09,
00057         kbW = 0x0d,
00058         kbX = 0x07,
00059         kbY = 0x10,
00060         kbZ = 0x06,
00061         kbTab = 0x30,
00062         kbReturn = 0x24,
00063         kbSpace = 0x31,
00064         kbLeftShift = 0x38,
00065         kbRightShift = 0x3c,
00066         kbLeftControl = 0x3b,
00067         kbRightControl = 0x3e,
00068         kbLeftAlt = 0x3a,
00069         kbRightAlt = 0x3d,
00070         kbLeftMeta = 0x37,
00071         kbRightMeta = 0x36,
00072         kbBackspace = 0x33,
00073         kbLeft = 0x7b,
00074         kbRight = 0x7c,
00075         kbUp = 0x7e,
00076         kbDown = 0x7d,
00077         kbHome = 0x73,
00078         kbEnd = 0x77,
00079         kbInsert = 0x72,
00080         kbDelete = 0x75,
00081         kbPageUp = 0x74,
00082         kbPageDown = 0x79,
00083         kbEnter = 0x4c,
00084         kbNumpad1 = 0x53,
00085         kbNumpad2 = 0x54,
00086         kbNumpad3 = 0x55,
00087         kbNumpad4 = 0x56,
00088         kbNumpad5 = 0x57,
00089         kbNumpad6 = 0x58,
00090         kbNumpad7 = 0x59,
00091         kbNumpad8 = 0x5b,
00092         kbNumpad9 = 0x5c,
00093         kbNumpad0 = 0x52,
00094         kbNumpadAdd = 0x45,
00095         kbNumpadSubtract = 0x4e,
00096         kbNumpadMultiply = 0x43,
00097         kbNumpadDivide = 0x4b,
00098         kbRangeEnd = 0xffff,
00099         
00100         msRangeBegin,
00101         msLeft = msRangeBegin,
00102         msRight,
00103         msMiddle,
00104         msWheelUp,
00105         msWheelDown,
00106         msRangeEnd,
00107         
00108         gpRangeBegin,
00109         gpLeft = gpRangeBegin,
00110         gpRight,
00111         gpUp,
00112         gpDown,
00113         gpButton0,
00114         gpButton1,
00115         gpButton2,
00116         gpButton3,
00117         gpButton4,
00118         gpButton5,
00119         gpButton6,
00120         gpButton7,
00121         gpButton8,
00122         gpButton9,
00123         gpButton10,
00124         gpButton11,
00125         gpButton12,
00126         gpButton13,
00127         gpButton14,
00128         gpButton15,
00129 
00130         gp0Left,
00131         gp0Right,
00132         gp0Up,
00133         gp0Down,
00134         gp0Button0,
00135         gp0Button1,
00136         gp0Button2,
00137         gp0Button3,
00138         gp0Button4,
00139         gp0Button5,
00140         gp0Button6,
00141         gp0Button7,
00142         gp0Button8,
00143         gp0Button9,
00144         gp0Button10,
00145         gp0Button11,
00146         gp0Button12,
00147         gp0Button13,
00148         gp0Button14,
00149         gp0Button15,
00150         
00151         gp1Left,
00152         gp1Right,
00153         gp1Up,
00154         gp1Down,
00155         gp1Button0,
00156         gp1Button1,
00157         gp1Button2,
00158         gp1Button3,
00159         gp1Button4,
00160         gp1Button5,
00161         gp1Button6,
00162         gp1Button7,
00163         gp1Button8,
00164         gp1Button9,
00165         gp1Button10,
00166         gp1Button11,
00167         gp1Button12,
00168         gp1Button13,
00169         gp1Button14,
00170         gp1Button15,
00171         
00172         gp2Left,
00173         gp2Right,
00174         gp2Up,
00175         gp2Down,
00176         gp2Button0,
00177         gp2Button1,
00178         gp2Button2,
00179         gp2Button3,
00180         gp2Button4,
00181         gp2Button5,
00182         gp2Button6,
00183         gp2Button7,
00184         gp2Button8,
00185         gp2Button9,
00186         gp2Button10,
00187         gp2Button11,
00188         gp2Button12,
00189         gp2Button13,
00190         gp2Button14,
00191         gp2Button15,
00192         
00193         gp3Left,
00194         gp3Right,
00195         gp3Up,
00196         gp3Down,
00197         gp3Button0,
00198         gp3Button1,
00199         gp3Button2,
00200         gp3Button3,
00201         gp3Button4,
00202         gp3Button5,
00203         gp3Button6,
00204         gp3Button7,
00205         gp3Button8,
00206         gp3Button9,
00207         gp3Button10,
00208         gp3Button11,
00209         gp3Button12,
00210         gp3Button13,
00211         gp3Button14,
00212         gp3Button15,
00213         
00214         gpRangeEnd = gp3Button15,
00215         
00216         numButtons = gpRangeEnd + 1,
00217         numGamepads = 4,
00218         noButton = 0xffffffff,
00219         
00220         kbNum = kbRangeEnd - kbRangeBegin + 1,
00221         msNum = msRangeEnd - msRangeBegin + 1,
00222         gpNum = gpRangeEnd - gpRangeBegin + 1,
00223         gpNumPerGamepad = gpNum / (numGamepads + 1),
00224     };
00225 }
00226     
00227 #endif