libkipr  1.0.0
graphics_key_code.h
Go to the documentation of this file.
1 
8 #ifndef _KIPR_GRAPHICS_GRAPHICS_KEY_CODE_H_
9 #define _KIPR_GRAPHICS_GRAPHICS_KEY_CODE_H_
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
16 enum KeyCode
17 {
18  KeyEnter = '\n',
19  KeyBackSpace = '\b',
20  KeyTab = '\t',
21  KeyCancel = 0x03,
22  KeyClear = 0x0C,
23  KeyShift = 0x10,
24  KeyControl = 0x11,
25  KeyAlt = 0x12,
26  KeyPause = 0x13,
27  KeyCapsLock = 0x14,
28  KeyEscape = 0x1B,
29  KeySpace = 0x20,
30  KeyPageUp = 0x21,
31  KeyPageDown = 0x22,
32  KeyEnd = 0x23,
33  KeyHome = 0x24,
34  KeyLeft = 0x25,
35  KeyUp = 0x26,
36  KeyRight = 0x27,
37  KeyDown = 0x28,
38  KeyComma = 0x2C,
39  KeyPeriod = 0x2E,
40  KeySlash = 0x2F,
41  KeyZero = 0x30,
42  KeyOne = 0x31,
43  KeyTwo = 0x32,
44  KeyThree = 0x33,
45  KeyFour = 0x34,
46  KeyFive = 0x35,
47  KeySix = 0x36,
48  KeySeven = 0x37,
49  KeyEight = 0x38,
50  KeyNine = 0x39,
51  KeySemiColon = 0x3B,
52  KeyEquals = 0x3D,
53  KeyA = 0x41,
54  KeyB = 0x42,
55  KeyC = 0x43,
56  KeyD = 0x44,
57  KeyE = 0x45,
58  KeyF = 0x46,
59  KeyG = 0x47,
60  KeyH = 0x48,
61  KeyI = 0x49,
62  KeyJ = 0x4A,
63  KeyK = 0x4B,
64  KeyL = 0x4C,
65  KeyM = 0x4D,
66  KeyN = 0x4E,
67  KeyO = 0x4F,
68  KeyP = 0x50,
69  KeyQ = 0x51,
70  KeyR = 0x52,
71  KeyS = 0x53,
72  KeyT = 0x54,
73  KeyU = 0x55,
74  KeyV = 0x56,
75  KeyW = 0x57,
76  KeyX = 0x58,
77  KeyY = 0x59,
78  KeyZ = 0x5A,
79  KeyOpenBracket = 0x5B,
80  KeyBackSlash = 0x5C,
81  KeyCloseBracket = 0x5D,
82  KeyNumPad0 = 0x60,
83  KeyNumPad1 = 0x61,
84  KeyNumPad2 = 0x62,
85  KeyNumPad3 = 0x63,
86  KeyNumPad4 = 0x64,
87  KeyNumPad5 = 0x65,
88  KeyNumPad6 = 0x66,
89  KeyNumPad7 = 0x67,
90  KeyNumPad8 = 0x68,
91  KeyNumPad9 = 0x69,
92  KeyMultiply = 0x6A,
93  KeyAdd = 0x6B,
94  KeySeparator = 0x6C,
95  KeySubtract = 0x6D,
96  KeyDecimal = 0x6E,
97  KeyDivide = 0x6F,
98  KeyF1 = 0x70,
99  KeyF2 = 0x71,
100  KeyF3 = 0x72,
101  KeyF4 = 0x73,
102  KeyF5 = 0x74,
103  KeyF6 = 0x75,
104  KeyF7 = 0x76,
105  KeyF8 = 0x77,
106  KeyF9 = 0x78,
107  KeyF10 = 0x79,
108  KeyF11 = 0x7A,
109  KeyF12 = 0x7B,
110  KeyDelete = 0x7F,
111  KeyNumLock = 0x90,
112  KeyScrollLock = 0x91,
113  KeyPrintScreen = 0x9A,
114  KeyInsert = 0x9B,
115  KeyHelp = 0x9C,
116  KeyMeta = 0x9D,
117  KeyBackQuote = 0xC0,
118  KeyQuote = 0xDE,
119  KeyFinal = 0x18,
120  KeyConvert = 0x1C,
121  KeyNonConvert = 0x1D,
122  KeyAccept = 0x1E,
123  KeyModeChange = 0x1F,
124  KeyKana = 0x15,
125  KeyKanji = 0x19,
126  KeyUndefined = 0x0
127 };
128 
129 #ifdef __cplusplus
130 }
131 #endif
132 
133 
134 #endif
KeyCode
All Key Codes.
Definition: graphics_key_code.h:17
@ KeyRight
right arrow key
Definition: graphics_key_code.h:36
@ KeySix
six key
Definition: graphics_key_code.h:47
@ KeyControl
control key
Definition: graphics_key_code.h:24
@ KeyQuote
quote key
Definition: graphics_key_code.h:118
@ KeyF9
F9 key.
Definition: graphics_key_code.h:106
@ KeyCancel
cancel key
Definition: graphics_key_code.h:21
@ KeyNumPad1
numpad 1 key
Definition: graphics_key_code.h:83
@ KeyEnd
end key
Definition: graphics_key_code.h:32
@ KeyDivide
divide key '/'
Definition: graphics_key_code.h:97
@ KeyW
w key
Definition: graphics_key_code.h:75
@ KeyTwo
two key
Definition: graphics_key_code.h:43
@ KeyG
g key
Definition: graphics_key_code.h:59
@ KeyModeChange
mode change key
Definition: graphics_key_code.h:123
@ KeyAccept
accept key
Definition: graphics_key_code.h:122
@ KeyN
n key
Definition: graphics_key_code.h:66
@ KeyZero
zero key
Definition: graphics_key_code.h:41
@ KeyO
o key
Definition: graphics_key_code.h:67
@ KeyInsert
insert key
Definition: graphics_key_code.h:114
@ KeyY
y key
Definition: graphics_key_code.h:77
@ KeyNumPad5
numpad 5 key
Definition: graphics_key_code.h:87
@ KeyThree
three key
Definition: graphics_key_code.h:44
@ KeyBackSpace
backspace key
Definition: graphics_key_code.h:19
@ KeyF7
F7 key.
Definition: graphics_key_code.h:104
@ KeyEight
eight key
Definition: graphics_key_code.h:49
@ KeyI
i key
Definition: graphics_key_code.h:61
@ KeyF12
F12 key.
Definition: graphics_key_code.h:109
@ KeyPrintScreen
print screen key
Definition: graphics_key_code.h:113
@ KeyV
v key
Definition: graphics_key_code.h:74
@ KeyNumPad9
numpad 9 key
Definition: graphics_key_code.h:91
@ KeyNumPad8
numpad 8 key
Definition: graphics_key_code.h:90
@ KeyShift
shift key
Definition: graphics_key_code.h:23
@ KeySeven
seven key
Definition: graphics_key_code.h:48
@ KeyTab
tab key
Definition: graphics_key_code.h:20
@ KeyR
r key
Definition: graphics_key_code.h:70
@ KeyNonConvert
non convert key
Definition: graphics_key_code.h:121
@ KeyF8
F8 key.
Definition: graphics_key_code.h:105
@ KeyF6
F6 key.
Definition: graphics_key_code.h:103
@ KeyDelete
delete key
Definition: graphics_key_code.h:110
@ KeyOpenBracket
open bracket key '['
Definition: graphics_key_code.h:79
@ KeyBackSlash
back slash key '\'
Definition: graphics_key_code.h:80
@ KeyPause
pause key
Definition: graphics_key_code.h:26
@ KeyH
h key
Definition: graphics_key_code.h:60
@ KeyF11
F11 key.
Definition: graphics_key_code.h:108
@ KeyU
u key
Definition: graphics_key_code.h:73
@ KeyNumPad6
numpad 6 key
Definition: graphics_key_code.h:88
@ KeyKanji
kanji key
Definition: graphics_key_code.h:125
@ KeyNine
nine key
Definition: graphics_key_code.h:50
@ KeyD
d key
Definition: graphics_key_code.h:56
@ KeyFour
four key
Definition: graphics_key_code.h:45
@ KeyJ
j key
Definition: graphics_key_code.h:62
@ KeySpace
space key
Definition: graphics_key_code.h:29
@ KeyEscape
escape key
Definition: graphics_key_code.h:28
@ KeyAdd
add key '+'
Definition: graphics_key_code.h:93
@ KeyMultiply
multiply key '*'
Definition: graphics_key_code.h:92
@ KeySeparator
separator key '-'
Definition: graphics_key_code.h:94
@ KeyNumPad3
numpad 3 key
Definition: graphics_key_code.h:85
@ KeyF3
F3 key.
Definition: graphics_key_code.h:100
@ KeyHome
home key
Definition: graphics_key_code.h:33
@ KeyBackQuote
backquote key
Definition: graphics_key_code.h:117
@ KeyPageUp
page up key
Definition: graphics_key_code.h:30
@ KeyMeta
meta key
Definition: graphics_key_code.h:116
@ KeyX
x key
Definition: graphics_key_code.h:76
@ KeyL
l key
Definition: graphics_key_code.h:64
@ KeyNumLock
numlock key
Definition: graphics_key_code.h:111
@ KeyEnter
enter key
Definition: graphics_key_code.h:18
@ KeyNumPad4
numpad 4 key
Definition: graphics_key_code.h:86
@ KeyKana
kana key
Definition: graphics_key_code.h:124
@ KeyF10
F10 key.
Definition: graphics_key_code.h:107
@ KeyUp
up arrow key
Definition: graphics_key_code.h:35
@ KeyB
b key
Definition: graphics_key_code.h:54
@ KeyF4
F4 key.
Definition: graphics_key_code.h:101
@ KeyNumPad2
numpad 2 key
Definition: graphics_key_code.h:84
@ KeyS
s key
Definition: graphics_key_code.h:71
@ KeyF
f key
Definition: graphics_key_code.h:58
@ KeyNumPad0
numpad 0 key
Definition: graphics_key_code.h:82
@ KeyQ
q key
Definition: graphics_key_code.h:69
@ KeyT
t key
Definition: graphics_key_code.h:72
@ KeyComma
comma key ','
Definition: graphics_key_code.h:38
@ KeyClear
clear key
Definition: graphics_key_code.h:22
@ KeyF2
F2 key.
Definition: graphics_key_code.h:99
@ KeyC
c key
Definition: graphics_key_code.h:55
@ KeyAlt
alt key
Definition: graphics_key_code.h:25
@ KeyFive
five key
Definition: graphics_key_code.h:46
@ KeyPeriod
period key '.'
Definition: graphics_key_code.h:39
@ KeySubtract
subtract key '-'
Definition: graphics_key_code.h:95
@ KeyE
e key
Definition: graphics_key_code.h:57
@ KeyDown
down arrow key
Definition: graphics_key_code.h:37
@ KeySemiColon
semicolon key ';'
Definition: graphics_key_code.h:51
@ KeyZ
z key
Definition: graphics_key_code.h:78
@ KeyUndefined
undefined key
Definition: graphics_key_code.h:126
@ KeyHelp
help key
Definition: graphics_key_code.h:115
@ KeyCloseBracket
close bracket key ']'
Definition: graphics_key_code.h:81
@ KeyF5
F5 key.
Definition: graphics_key_code.h:102
@ KeyPageDown
page down key
Definition: graphics_key_code.h:31
@ KeyNumPad7
numpad 7 key
Definition: graphics_key_code.h:89
@ KeyCapsLock
capslock key
Definition: graphics_key_code.h:27
@ KeyFinal
final key
Definition: graphics_key_code.h:119
@ KeyConvert
convert key
Definition: graphics_key_code.h:120
@ KeyOne
one key
Definition: graphics_key_code.h:42
@ KeyA
a key
Definition: graphics_key_code.h:53
@ KeyDecimal
decimal key '.'
Definition: graphics_key_code.h:96
@ KeyEquals
equals key '='
Definition: graphics_key_code.h:52
@ KeyLeft
left key
Definition: graphics_key_code.h:34
@ KeySlash
slash key '/'
Definition: graphics_key_code.h:40
@ KeyF1
F1 key.
Definition: graphics_key_code.h:98
@ KeyM
m key
Definition: graphics_key_code.h:65
@ KeyK
k key
Definition: graphics_key_code.h:63
@ KeyP
p key
Definition: graphics_key_code.h:68
@ KeyScrollLock
scroll lock key
Definition: graphics_key_code.h:112