00001 #ifndef GOSU_BUTTONSMAC_HPP 00002 #define GOSU_BUTTONSMAC_HPP 00003 00004 namespace Gosu 00005 { 00009 enum ButtonName 00010 { 00011 kbRangeBegin = 0x01, 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 gpRangeEnd = gpButton15, 00130 00131 kbNum = kbRangeEnd - kbRangeBegin + 1, 00132 msNum = msRangeEnd - msRangeBegin + 1, 00133 gpNum = gpRangeEnd - gpRangeBegin + 1, 00134 00135 numButtons = gpRangeEnd + 1, 00136 noButton = 0xffffffff 00137 }; 00138 } 00139 00140 #endif
Documentation not clear enough? Please go to one of the places listed on http://www.libgosu.org/ and leave feedback. Thanks!