Home | Namespaces | Hierarchy | Alphabetical List | Class list | Files | Namespace Members | Class members | File members
E:/Programming/MyProject/K_Game_hg/GameEngine/include/input/KeyEventDefines.h
Go to the documentation of this file.
00001 // Copyright 2006-2011 by Kat'Oun
00002 
00003 #ifndef _KEY_EVENT_DEFINES_H_
00004 #define _KEY_EVENT_DEFINES_H_
00005 
00006 namespace input
00007 {
00008 
00010 enum KeyCode
00011 {
00012         KC_UNKNOWN  = 0x00,
00013         KC_ESCAPE      = 0x01,
00014         KC_1           = 0x02,
00015         KC_2           = 0x03,
00016         KC_3           = 0x04,
00017         KC_4           = 0x05,
00018         KC_5           = 0x06,
00019         KC_6           = 0x07,
00020         KC_7           = 0x08,
00021         KC_8           = 0x09,
00022         KC_9           = 0x0A,
00023         KC_0           = 0x0B,
00024         KC_MINUS       = 0x0C,          // - on main keyboard
00025         KC_EQUALS      = 0x0D,
00026         KC_BACK        = 0x0E,          // backspace
00027         KC_TAB         = 0x0F,
00028         KC_Q           = 0x10,
00029         KC_W           = 0x11,
00030         KC_E           = 0x12,
00031         KC_R           = 0x13,
00032         KC_T           = 0x14,
00033         KC_Y           = 0x15,
00034         KC_U           = 0x16,
00035         KC_I           = 0x17,
00036         KC_O           = 0x18,
00037         KC_P           = 0x19,
00038         KC_LBRACKET    = 0x1A,
00039         KC_RBRACKET    = 0x1B,
00040         KC_RETURN      = 0x1C,    // Enter on main keyboard
00041         KC_LCONTROL    = 0x1D,
00042         KC_A           = 0x1E,
00043         KC_S           = 0x1F,
00044         KC_D           = 0x20,
00045         KC_F           = 0x21,
00046         KC_G           = 0x22,
00047         KC_H           = 0x23,
00048         KC_J           = 0x24,
00049         KC_K           = 0x25,
00050         KC_L           = 0x26,
00051         KC_SEMICOLON   = 0x27,
00052         KC_APOSTROPHE  = 0x28,
00053         KC_GRAVE       = 0x29,    // accent
00054         KC_LSHIFT      = 0x2A,
00055         KC_BACKSLASH   = 0x2B,
00056         KC_Z           = 0x2C,
00057         KC_X           = 0x2D,
00058         KC_C           = 0x2E,
00059         KC_V           = 0x2F,
00060         KC_B           = 0x30,
00061         KC_N           = 0x31,
00062         KC_M           = 0x32,
00063         KC_COMMA       = 0x33,
00064         KC_PERIOD      = 0x34,    // . on main keyboard
00065         KC_SLASH       = 0x35,    // / on main keyboard
00066         KC_RSHIFT      = 0x36,
00067         KC_MULTIPLY    = 0x37,    // * on numeric keypad
00068         KC_LMENU       = 0x38,    // left Alt
00069         KC_SPACE       = 0x39,
00070         KC_CAPITAL     = 0x3A,
00071         KC_F1          = 0x3B,
00072         KC_F2          = 0x3C,
00073         KC_F3          = 0x3D,
00074         KC_F4          = 0x3E,
00075         KC_F5          = 0x3F,
00076         KC_F6          = 0x40,
00077         KC_F7          = 0x41,
00078         KC_F8          = 0x42,
00079         KC_F9          = 0x43,
00080         KC_F10         = 0x44,
00081         KC_NUMLOCK     = 0x45,
00082         KC_SCROLL      = 0x46,    // Scroll Lock
00083         KC_NUMPAD7     = 0x47,
00084         KC_NUMPAD8     = 0x48,
00085         KC_NUMPAD9     = 0x49,
00086         KC_SUBTRACT    = 0x4A,    // - on numeric keypad
00087         KC_NUMPAD4     = 0x4B,
00088         KC_NUMPAD5     = 0x4C,
00089         KC_NUMPAD6     = 0x4D,
00090         KC_ADD         = 0x4E,    // + on numeric keypad
00091         KC_NUMPAD1     = 0x4F,
00092         KC_NUMPAD2     = 0x50,
00093         KC_NUMPAD3     = 0x51,
00094         KC_NUMPAD0     = 0x52,
00095         KC_DECIMAL     = 0x53,    // . on numeric keypad
00096         KC_OEM_102     = 0x56,    // < > | on UK/Germany keyboards
00097         KC_F11         = 0x57,
00098         KC_F12         = 0x58,
00099         KC_F13         = 0x64,    //                     (NEC PC98)
00100         KC_F14         = 0x65,    //                     (NEC PC98)
00101         KC_F15         = 0x66,    //                     (NEC PC98)
00102         KC_KANA        = 0x70,    // (Japanese keyboard)
00103         KC_ABNT_C1     = 0x73,    // / ? on Portugese (Brazilian) keyboards
00104         KC_CONVERT     = 0x79,    // (Japanese keyboard)
00105         KC_NOCONVERT   = 0x7B,    // (Japanese keyboard)
00106         KC_YEN         = 0x7D,    // (Japanese keyboard)
00107         KC_ABNT_C2     = 0x7E,    // Numpad . on Portugese (Brazilian) keyboards
00108         KC_NUMPADEQUALS= 0x8D,    // = on numeric keypad (NEC PC98)
00109         KC_PREVTRACK   = 0x90,    // Previous Track (KC_CIRCUMFLEX on Japanese keyboard)
00110         KC_AT          = 0x91,    //                     (NEC PC98)
00111         KC_COLON       = 0x92,    //                     (NEC PC98)
00112         KC_UNDERLINE   = 0x93,    //                     (NEC PC98)
00113         KC_KANJI       = 0x94,    // (Japanese keyboard)
00114         KC_STOP        = 0x95,    //                     (NEC PC98)
00115         KC_AX          = 0x96,    //                     (Japan AX)
00116         KC_UNLABELED   = 0x97,    //                        (J3100)
00117         KC_NEXTTRACK   = 0x99,    // Next Track
00118         KC_NUMPADENTER = 0x9C,    // Enter on numeric keypad
00119         KC_RCONTROL    = 0x9D,
00120         KC_MUTE        = 0xA0,    // Mute
00121         KC_CALCULATOR  = 0xA1,    // Calculator
00122         KC_PLAYPAUSE   = 0xA2,    // Play / Pause
00123         KC_MEDIASTOP   = 0xA4,    // Media Stop
00124         KC_VOLUMEDOWN  = 0xAE,    // Volume -
00125         KC_VOLUMEUP    = 0xB0,    // Volume +
00126         KC_WEBHOME     = 0xB2,    // Web home
00127         KC_NUMPADCOMMA = 0xB3,    // , on numeric keypad (NEC PC98)
00128         KC_DIVIDE      = 0xB5,    // / on numeric keypad
00129         KC_SYSRQ       = 0xB7,
00130         KC_RMENU       = 0xB8,    // right Alt
00131         KC_PAUSE       = 0xC5,    // Pause
00132         KC_HOME        = 0xC7,    // Home on arrow keypad
00133         KC_UP          = 0xC8,    // UpArrow on arrow keypad
00134         KC_PGUP        = 0xC9,    // PgUp on arrow keypad
00135         KC_LEFT        = 0xCB,    // LeftArrow on arrow keypad
00136         KC_RIGHT       = 0xCD,    // RightArrow on arrow keypad
00137         KC_END         = 0xCF,    // End on arrow keypad
00138         KC_DOWN        = 0xD0,    // DownArrow on arrow keypad
00139         KC_PGDOWN      = 0xD1,    // PgDn on arrow keypad
00140         KC_INSERT      = 0xD2,    // Insert on arrow keypad
00141         KC_DELETE      = 0xD3,    // Delete on arrow keypad
00142         KC_LWIN        = 0xDB,    // Left Windows key
00143         KC_RWIN        = 0xDC,    // Right Windows key
00144         KC_APPS        = 0xDD,    // AppMenu key
00145         KC_POWER       = 0xDE,    // System Power
00146         KC_SLEEP       = 0xDF,    // System Sleep
00147         KC_WAKE        = 0xE3,    // System Wake
00148         KC_WEBSEARCH   = 0xE5,    // Web Search
00149         KC_WEBFAVORITES= 0xE6,    // Web Favorites
00150         KC_WEBREFRESH  = 0xE7,    // Web Refresh
00151         KC_WEBSTOP     = 0xE8,          // Web Stop
00152         KC_WEBFORWARD  = 0xE9,          // Web Forward
00153         KC_WEBBACK     = 0xEA,          // Web Back
00154         KC_MYCOMPUTER  = 0xEB,          // My Computer
00155         KC_MAIL        = 0xEC,          // Mail
00156         KC_MEDIASELECT = 0xED,          // Media Select
00157         KC_COUNT
00158 };
00159 
00161 enum KeyModifier
00162 {
00163         KM_SHIFT        = 0x0000001,
00164         KM_CTRL         = 0x0000010,
00165         KM_ALT          = 0x0000100
00166 };
00167 
00168 } // end namespace input
00169 
00170 #endif

The KG Game Engine
The KG Game Engine Documentation © 2006-2011 by Kat'Oun. Generated on Sat Jul 2 2011 00:50:04 by Doxygen (1.7.4)