00001 #ifndef KEYS_HPP 00002 #define KEYS_HPP 00003 00004 namespace input 00005 { 00006 namespace mouse 00007 { 00008 enum state 00009 { 00010 UP = 0, 00011 DRAGGED, 00012 CLICKED, 00013 RELEASED, 00014 DOUBLE, 00015 LONG 00016 }; 00017 00018 enum button 00019 { 00020 LEFT = 0, 00021 RIGHT, 00022 MIDDLE 00023 }; 00024 } 00025 00026 namespace key 00027 { 00028 enum code 00029 { 00030 K_UNASSIGNED = 0x00, 00031 K_ESCAPE = 0x01, 00032 K_1 = 0x02, 00033 K_2 = 0x03, 00034 K_3 = 0x04, 00035 K_4 = 0x05, 00036 K_5 = 0x06, 00037 K_6 = 0x07, 00038 K_7 = 0x08, 00039 K_8 = 0x09, 00040 K_9 = 0x0A, 00041 K_0 = 0x0B, 00042 K_MINUS = 0x0C, 00043 K_EQUALS = 0x0D, 00044 K_BACK = 0x0E, 00045 K_TAB = 0x0F, 00046 K_Q = 0x10, 00047 K_W = 0x11, 00048 K_E = 0x12, 00049 K_R = 0x13, 00050 K_T = 0x14, 00051 K_Y = 0x15, 00052 K_U = 0x16, 00053 K_I = 0x17, 00054 K_O = 0x18, 00055 K_P = 0x19, 00056 K_LBRACKET = 0x1A, 00057 K_RBRACKET = 0x1B, 00058 K_RETURN = 0x1C, 00059 K_LCONTROL = 0x1D, 00060 K_A = 0x1E, 00061 K_S = 0x1F, 00062 K_D = 0x20, 00063 K_F = 0x21, 00064 K_G = 0x22, 00065 K_H = 0x23, 00066 K_J = 0x24, 00067 K_K = 0x25, 00068 K_L = 0x26, 00069 K_SEMICOLON = 0x27, 00070 K_APOSTROPHE = 0x28, 00071 K_GRAVE = 0x29, 00072 K_LSHIFT = 0x2A, 00073 K_BACKSLASH = 0x2B, 00074 K_Z = 0x2C, 00075 K_X = 0x2D, 00076 K_C = 0x2E, 00077 K_V = 0x2F, 00078 K_B = 0x30, 00079 K_N = 0x31, 00080 K_M = 0x32, 00081 K_COMMA = 0x33, 00082 K_PERIOD = 0x34, 00083 K_SLASH = 0x35, 00084 K_RSHIFT = 0x36, 00085 K_MULTIPLY = 0x37, 00086 K_LMENU = 0x38, 00087 K_SPACE = 0x39, 00088 K_CAPITAL = 0x3A, 00089 K_F1 = 0x3B, 00090 K_F2 = 0x3C, 00091 K_F3 = 0x3D, 00092 K_F4 = 0x3E, 00093 K_F5 = 0x3F, 00094 K_F6 = 0x40, 00095 K_F7 = 0x41, 00096 K_F8 = 0x42, 00097 K_F9 = 0x43, 00098 K_F10 = 0x44, 00099 K_NUMLOCK = 0x45, 00100 K_SCROLL = 0x46, 00101 K_NUMPAD7 = 0x47, 00102 K_NUMPAD8 = 0x48, 00103 K_NUMPAD9 = 0x49, 00104 K_SUBTRACT = 0x4A, 00105 K_NUMPAD4 = 0x4B, 00106 K_NUMPAD5 = 0x4C, 00107 K_NUMPAD6 = 0x4D, 00108 K_ADD = 0x4E, 00109 K_NUMPAD1 = 0x4F, 00110 K_NUMPAD2 = 0x50, 00111 K_NUMPAD3 = 0x51, 00112 K_NUMPAD0 = 0x52, 00113 K_DECIMAL = 0x53, 00114 K_OEM_102 = 0x56, 00115 K_F11 = 0x57, 00116 K_F12 = 0x58, 00117 K_F13 = 0x64, 00118 K_F14 = 0x65, 00119 K_F15 = 0x66, 00120 K_KANA = 0x70, 00121 K_ABNT_C1 = 0x73, 00122 K_CONVERT = 0x79, 00123 K_NOCONVERT = 0x7B, 00124 K_YEN = 0x7D, 00125 K_ABNT_C2 = 0x7E, 00126 K_NUMPADEQUALS= 0x8D, 00127 K_PREVTRACK = 0x90, 00128 K_AT = 0x91, 00129 K_COLON = 0x92, 00130 K_UNDERLINE = 0x93, 00131 K_KANJI = 0x94, 00132 K_STOP = 0x95, 00133 K_AX = 0x96, 00134 K_UNLABELED = 0x97, 00135 K_NEXTTRACK = 0x99, 00136 K_NUMPADENTER = 0x9C, 00137 K_RCONTROL = 0x9D, 00138 K_MUTE = 0xA0, 00139 K_CALCULATOR = 0xA1, 00140 K_PLAYPAUSE = 0xA2, 00141 K_MEDIASTOP = 0xA4, 00142 K_VOLUMEDOWN = 0xAE, 00143 K_VOLUMEUP = 0xB0, 00144 K_WEBHOME = 0xB2, 00145 K_NUMPADCOMMA = 0xB3, 00146 K_DIVIDE = 0xB5, 00147 K_SYSRQ = 0xB7, 00148 K_RMENU = 0xB8, 00149 K_PAUSE = 0xC5, 00150 K_HOME = 0xC7, 00151 K_UP = 0xC8, 00152 K_PGUP = 0xC9, 00153 K_LEFT = 0xCB, 00154 K_RIGHT = 0xCD, 00155 K_END = 0xCF, 00156 K_DOWN = 0xD0, 00157 K_PGDOWN = 0xD1, 00158 K_INSERT = 0xD2, 00159 K_DELETE = 0xD3, 00160 K_LWIN = 0xDB, 00161 K_RWIN = 0xDC, 00162 K_APPS = 0xDD, 00163 K_POWER = 0xDE, 00164 K_SLEEP = 0xDF, 00165 K_WAKE = 0xE3, 00166 K_WEBSEARCH = 0xE5, 00167 K_WEBFAVORITES= 0xE6, 00168 K_WEBREFRESH = 0xE7, 00169 K_WEBSTOP = 0xE8, 00170 K_WEBFORWARD = 0xE9, 00171 K_WEBBACK = 0xEA, 00172 K_MYCOMPUTER = 0xEB, 00173 K_MAIL = 0xEC, 00174 K_MEDIASELECT = 0xED, 00175 K_MAXKEY = 0xFF 00176 }; 00177 } 00178 } 00179 00180 #endif