C++ Game Framework  2013-06-04
CGF is a DirectX 11 game framework, built in C++ and DirectX 11. This is used to contain many to the DirectX functionality and wrap them into a framework to make game development easier.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
InputKey.h
Go to the documentation of this file.
1 // Filename: InputKey.h
4 
5 //Preprocessor directive designed to cause the current source file to be included only once in a single compilation
6 #pragma once
7 
8 enum InputKey
9 {
10  IK_ESCAPE = 0x01,
11  IK_1 = 0x02,
12  IK_2 = 0x03,
13  IK_3 = 0x04,
14  IK_4 = 0x05,
15  IK_5 = 0x06,
16  IK_6 = 0x07,
17  IK_7 = 0x08,
18  IK_8 = 0x09,
19  IK_9 = 0x0A,
20  IK_0 = 0x0B,
21  IK_MINUS = 0x0C, /* - on main keyboard */
22  IK_EQUALS = 0x0D,
23  IK_BACK = 0x0E, /* backspace */
24  IK_TAB = 0x0F,
25  IK_Q = 0x10,
26  IK_W = 0x11,
27  IK_E = 0x12,
28  IK_R = 0x13,
29  IK_T = 0x14,
30  IK_Y = 0x15,
31  IK_U = 0x16,
32  IK_I = 0x17,
33  IK_O = 0x18,
34  IK_P = 0x19,
35  IK_LBRACKET = 0x1A,
36  IK_RBRACKET = 0x1B,
37  IK_RETURN = 0x1C, /* Enter on main keyboard */
38  IK_LCONTROL = 0x1D,
39  IK_A = 0x1E,
40  IK_S = 0x1F,
41  IK_D = 0x20,
42  IK_F = 0x21,
43  IK_G = 0x22,
44  IK_H = 0x23,
45  IK_J = 0x24,
46  IK_K = 0x25,
47  IK_L = 0x26,
48  IK_SEMICOLON = 0x27,
49  IK_APOSTROPHE = 0x28,
50  IK_GRAVE = 0x29, /* accent grave */
51  IK_LSHIFT = 0x2A,
52  IK_BACKSLASH = 0x2B,
53  IK_Z = 0x2C,
54  IK_X = 0x2D,
55  IK_C = 0x2E,
56  IK_V = 0x2F,
57  IK_B = 0x30,
58  IK_N = 0x31,
59  IK_M = 0x32,
60  IK_COMMA = 0x33,
61  IK_PERIOD = 0x34, /* . on main keyboard */
62  IK_SLASH = 0x35, /* / on main keyboard */
63  IK_RSHIFT = 0x36,
64  IK_MULTIPLY = 0x37, /* * on numeric keypad */
65  IK_LMENU = 0x38, /* left Alt */
66  IK_SPACE = 0x39,
67  IK_CAPITAL = 0x3A,
68  IK_F1 = 0x3B,
69  IK_F2 = 0x3C,
70  IK_F3 = 0x3D,
71  IK_F4 = 0x3E,
72  IK_F5 = 0x3F,
73  IK_F6 = 0x40,
74  IK_F7 = 0x41,
75  IK_F8 = 0x42,
76  IK_F9 = 0x43,
77  IK_F10 = 0x44,
78  IK_NUMLOCK = 0x45,
79  IK_SCROLL = 0x46, /* Scroll Lock */
80  IK_NUMPAD7 = 0x47,
81  IK_NUMPAD8 = 0x48,
82  IK_NUMPAD9 = 0x49,
83  IK_SUBTRACT = 0x4A, /* - on numeric keypad */
84  IK_NUMPAD4 = 0x4B,
85  IK_NUMPAD5 = 0x4C,
86  IK_NUMPAD6 = 0x4D,
87  IK_ADD = 0x4E, /* + on numeric keypad */
88  IK_NUMPAD1 = 0x4F,
89  IK_NUMPAD2 = 0x50,
90  IK_NUMPAD3 = 0x51,
91  IK_NUMPAD0 = 0x52,
92  IK_DECIMAL = 0x53, /* . on numeric keypad */
93  IK_OEM_102 = 0x56, /* <> or \| on RT 102-key keyboard (Non-U.S.) */
94  IK_F11 = 0x57,
95  IK_F12 = 0x58,
96  IK_F13 = 0x64, /* (NEC PC98) */
97  IK_F14 = 0x65, /* (NEC PC98) */
98  IK_F15 = 0x66, /* (NEC PC98) */
99  IK_KANA = 0x70, /* (Japanese keyboard) */
100  IK_ABNT_C1 = 0x73, /* /? on Brazilian keyboard */
101  IK_CONVERT = 0x79, /* (Japanese keyboard) */
102  IK_NOCONVERT = 0x7B, /* (Japanese keyboard) */
103  IK_YEN = 0x7D, /* (Japanese keyboard) */
104  IK_ABNT_C2 = 0x7E, /* Numpad . on Brazilian keyboard */
105  IK_NUMPADEQUALS = 0x8D, /* = on numeric keypad (NEC PC98) */
106  IK_PREVTRACK = 0x90, /* Previous Track (IK_CIRCUMFLEX on Japanese keyboard) */
107  IK_AT = 0x91, /* (NEC PC98) */
108  IK_COLON = 0x92, /* (NEC PC98) */
109  IK_UNDERLINE = 0x93, /* (NEC PC98) */
110  IK_KANJI = 0x94, /* (Japanese keyboard) */
111  IK_STOP = 0x95, /* (NEC PC98) */
112  IK_AX = 0x96, /* (Japan AX) */
113  IK_UNLABELED = 0x97, /* (J3100) */
114  IK_NEXTTRACK = 0x99, /* Next Track */
115  IK_NUMPADENTER = 0x9C, /* Enter on numeric keypad */
116  IK_RCONTROL = 0x9D,
117  IK_MUTE = 0xA0, /* Mute */
118  IK_CALCULATOR = 0xA1, /* Calculator */
119  IK_PLAYPAUSE = 0xA2, /* Play / Pause */
120  IK_MEDIASTOP = 0xA4, /* Media Stop */
121  IK_VOLUMEDOWN = 0xAE, /* Volume - */
122  IK_VOLUMEUP = 0xB0, /* Volume + */
123  IK_WEBHOME = 0xB2, /* Web home */
124  IK_NUMPADCOMMA = 0xB3, /* , on numeric keypad (NEC PC98) */
125  IK_DIVIDE = 0xB5, /* / on numeric keypad */
126  IK_SYSRQ = 0xB7,
127  IK_RMENU = 0xB8, /* right Alt */
128  IK_PAUSE = 0xC5, /* Pause */
129  IK_HOME = 0xC7, /* Home on arrow keypad */
130  IK_UP = 0xC8, /* UpArrow on arrow keypad */
131  IK_PRIOR = 0xC9, /* PgUp on arrow keypad */
132  IK_LEFT = 0xCB, /* LeftArrow on arrow keypad */
133  IK_RIGHT = 0xCD, /* RightArrow on arrow keypad */
134  IK_END = 0xCF, /* End on arrow keypad */
135  IK_DOWN = 0xD0, /* DownArrow on arrow keypad */
136  IK_NEXT = 0xD1, /* PgDn on arrow keypad */
137  IK_INSERT = 0xD2, /* Insert on arrow keypad */
138  IK_DELETE = 0xD3, /* Delete on arrow keypad */
139  IK_LWIN = 0xDB, /* Left Windows key */
140  IK_RWIN = 0xDC, /* Right Windows key */
141  IK_APPS = 0xDD, /* AppMenu key */
142  IK_POWER = 0xDE, /* System Power */
143  IK_SLEEP = 0xDF, /* System Sleep */
144  IK_WAKE = 0xE3, /* System Wake */
145  IK_WEBSEARCH = 0xE5, /* Web Search */
146  IK_WEBFAVORITES = 0xE6, /* Web Favorites */
147  IK_WEBREFRESH = 0xE7, /* Web Refresh */
148  IK_WEBSTOP = 0xE8, /* Web Stop */
149  IK_WEBFORWARD = 0xE9, /* Web Forward */
150  IK_WEBBACK = 0xEA, /* Web Back */
151  IK_MYCOMPUTER = 0xEB, /* My Computer */
152  IK_MAIL = 0xEC, /* Mail */
153  IK_MEDIASELECT = 0xED, /* Media Select */
154 
155  /*
156  * Alternate names for keys, to facilitate transition from DOS.
157  */
158  IK_BACKSPACE = IK_BACK, /* backspace */
159  IK_NUMPADSTAR = IK_MULTIPLY, /* * on numeric keypad */
160  IK_LALT = IK_LMENU, /* left Alt */
161  IK_CAPSLOCK = IK_CAPITAL, /* CapsLock */
162  IK_NUMPADMINUS = IK_SUBTRACT, /* - on numeric keypad */
163  IK_NUMPADPLUS = IK_ADD, /* + on numeric keypad */
164  IK_NUMPADPERIOD = IK_DECIMAL, /* . on numeric keypad */
165  IK_NUMPADSLASH = IK_DIVIDE, /* / on numeric keypad */
166  IK_RALT = IK_RMENU, /* right Alt */
167  IK_UPARROW = IK_UP, /* UpArrow on arrow keypad */
168  IK_PGUP = IK_PRIOR, /* PgUp on arrow keypad */
169  IK_LEFTARROW = IK_LEFT, /* LeftArrow on arrow keypad */
170  IK_RIGHTARROW = IK_RIGHT, /* RightArrow on arrow keypad */
171  IK_DOWNARROW = IK_DOWN, /* DownArrow on arrow keypad */
172  IK_PGDN = IK_NEXT, /* PgDn on arrow keypad */
173 
174  /*
175  * Alternate names for keys originally not used on US keyboards.
176  */
177  IK_CIRCUMFLEX = IK_PREVTRACK /* Japanese keyboard */
178 };