Buttons.hpp
Go to the documentation of this file.
00001 #ifndef GOSU_BUTTONSWIN_HPP
00002 #define GOSU_BUTTONSWIN_HPP
00003 
00004 namespace Gosu
00005 {
00009     enum ButtonName
00010     {
00011         kbRangeBegin = 0x00,
00012         kbEscape = 0x01,
00013         kbF1 = 0x3b,
00014         kbF2 = 0x3c,
00015         kbF3 = 0x3d,
00016         kbF4 = 0x3e,
00017         kbF5 = 0x3f,
00018         kbF6 = 0x40,
00019         kbF7 = 0x41,
00020         kbF8 = 0x42,
00021         kbF9 = 0x43,
00022         kbF10 = 0x44,
00023         kbF11 = 0x57,
00024         kbF12 = 0x58,
00025         kb0 = 0x0b,
00026         kb1 = 0x02,
00027         kb2 = 0x03,
00028         kb3 = 0x04,
00029         kb4 = 0x05,
00030         kb5 = 0x06,
00031         kb6 = 0x07,
00032         kb7 = 0x08,
00033         kb8 = 0x09,
00034         kb9 = 0x0a,
00035         kbTab = 0x0f,
00036         kbReturn = 0x1c,
00037         kbSpace = 0x39,
00038         kbLeftShift = 0x2a,
00039         kbRightShift = 0x36,
00040         kbLeftControl = 0x1d,
00041         kbRightControl = 0x9d,
00042         kbLeftAlt = 0x38,
00043         kbRightAlt = 0xb8,
00044         kbLeftMeta = 0xdb,
00045         kbRightMeta = 0xdc,
00046         kbBackspace = 0x0e,
00047         kbLeft = 0xcb,
00048         kbRight = 0xcd,
00049         kbUp = 0xc8,
00050         kbDown = 0xd0,
00051         kbHome = 0xc7,
00052         kbEnd = 0xcf,
00053         kbInsert = 0xd2,
00054         kbDelete = 0xd3,
00055         kbPageUp = 0xc9,
00056         kbPageDown = 0xd1,
00057         kbEnter = 0x9c,
00058         kbA = 0x1e,
00059         kbB = 0x30,
00060         kbC = 0x2e,
00061         kbD = 0x20,
00062         kbE = 0x12,
00063         kbF = 0x21,
00064         kbG = 0x22,
00065         kbH = 0x23,
00066         kbI = 0x17,
00067         kbJ = 0x24,
00068         kbK = 0x25,
00069         kbL = 0x26,
00070         kbM = 0x32,
00071         kbN = 0x31,
00072         kbO = 0x18,
00073         kbP = 0x19,
00074         kbQ = 0x10,
00075         kbR = 0x13,
00076         kbS = 0x1f,
00077         kbT = 0x14,
00078         kbU = 0x16,
00079         kbV = 0x2f,
00080         kbW = 0x11,
00081         kbX = 0x2d,
00082         kbY = 0x15,
00083         kbZ = 0x2c,
00084         kbNumpad0 = 0x52,
00085         kbNumpad1 = 0x4f,
00086         kbNumpad2 = 0x50,
00087         kbNumpad3 = 0x51,
00088         kbNumpad4 = 0x4b,
00089         kbNumpad5 = 0x4c,
00090         kbNumpad6 = 0x4d,
00091         kbNumpad7 = 0x47,
00092         kbNumpad8 = 0x48,
00093         kbNumpad9 = 0x49,
00094         kbNumpadAdd = 0x4e,
00095         kbNumpadSubtract = 0x4a,
00096         kbNumpadMultiply = 0x37,
00097         kbNumpadDivide = 0xb5,
00098         kbRangeEnd = 0xff,
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