Xonotic
keycodes.qc
Go to the documentation of this file.
1
// key constants
3
4
//
5
// these are the key numbers that should be passed to Key_Event
6
//
7
float
K_TAB
= 9;
8
float
K_ENTER
= 13;
9
float
K_ESCAPE
= 27;
10
float
K_SPACE
= 32;
11
12
// normal keys should be passed as lowercased ascii
13
14
float
K_BACKSPACE
= 127;
15
float
K_UPARROW
= 128;
16
float
K_DOWNARROW
= 129;
17
float
K_LEFTARROW
= 130;
18
float
K_RIGHTARROW
= 131;
19
20
float
K_ALT
= 132;
21
float
K_CTRL
= 133;
22
float
K_SHIFT
= 134;
23
24
float
K_F1
= 135;
25
float
K_F2
= 136;
26
float
K_F3
= 137;
27
float
K_F4
= 138;
28
float
K_F5
= 139;
29
float
K_F6
= 140;
30
float
K_F7
= 141;
31
float
K_F8
= 142;
32
float
K_F9
= 143;
33
float
K_F10
= 144;
34
float
K_F11
= 145;
35
float
K_F12
= 146;
36
37
float
K_INS
= 147;
38
float
K_DEL
= 148;
39
float
K_PGDN
= 149;
40
float
K_PGUP
= 150;
41
float
K_HOME
= 151;
42
float
K_END
= 152;
43
44
float
K_NUMLOCK
= 154;
45
float
K_CAPSLOCK
= 155;
46
float
K_SCROLLOCK
= 156;
47
48
float
K_KP_0
= 157;
49
float
K_KP_INS
= 157;
// same as K_KP_0
50
float
K_KP_1
= 158;
51
float
K_KP_END
= 158;
// same as K_KP_1
52
float
K_KP_2
= 159;
53
float
K_KP_DOWNARROW
= 159;
// same as K_KP_2
54
float
K_KP_3
= 160;
55
float
K_KP_PGDN
= 160;
// same as K_KP_3
56
float
K_KP_4
= 161;
57
float
K_KP_LEFTARROW
= 161;
// same as K_KP_4
58
float
K_KP_5
= 162;
59
float
K_KP_6
= 163;
60
float
K_KP_RIGHTARROW
= 163;
// same as K_KP_6
61
float
K_KP_7
= 164;
62
float
K_KP_HOME
= 164;
// same as K_KP_7
63
float
K_KP_8
= 165;
64
float
K_KP_UPARROW
= 165;
// same as K_KP_8
65
float
K_KP_9
= 166;
66
float
K_KP_PGUP
= 166;
// same as K_KP_9
67
float
K_KP_PERIOD
= 167;
68
float
K_KP_DEL
= 167;
// same as K_KP_PERIOD
69
float
K_KP_DIVIDE
= 168;
70
float
K_KP_SLASH
= 168;
// same as K_KP_DIVIDE
71
float
K_KP_MULTIPLY
= 169;
72
float
K_KP_MINUS
= 170;
73
float
K_KP_PLUS
= 171;
74
float
K_KP_ENTER
= 172;
75
float
K_KP_EQUALS
= 173;
76
77
// mouse buttons generate virtual keys
78
float
K_PAUSE
= 153;
79
80
//
81
// joystick buttons
82
//
83
float
K_JOY1
= 768;
84
float
K_JOY2
= 769;
85
float
K_JOY3
= 770;
86
float
K_JOY4
= 771;
87
88
//
89
//
90
// aux keys are for multi-buttoned joysticks to generate so they can use
91
// the normal binding process
92
//
93
float
K_AUX1
= 772;
94
float
K_AUX2
= 773;
95
float
K_AUX3
= 774;
96
float
K_AUX4
= 775;
97
float
K_AUX5
= 776;
98
float
K_AUX6
= 777;
99
float
K_AUX7
= 778;
100
float
K_AUX8
= 779;
101
float
K_AUX9
= 780;
102
float
K_AUX10
= 781;
103
float
K_AUX11
= 782;
104
float
K_AUX12
= 783;
105
float
K_AUX13
= 784;
106
float
K_AUX14
= 785;
107
float
K_AUX15
= 786;
108
float
K_AUX16
= 787;
109
float
K_AUX17
= 788;
110
float
K_AUX18
= 789;
111
float
K_AUX19
= 790;
112
float
K_AUX20
= 791;
113
float
K_AUX21
= 792;
114
float
K_AUX22
= 793;
115
float
K_AUX23
= 794;
116
float
K_AUX24
= 795;
117
float
K_AUX25
= 796;
118
float
K_AUX26
= 797;
119
float
K_AUX27
= 798;
120
float
K_AUX28
= 799;
121
float
K_AUX29
= 800;
122
float
K_AUX30
= 801;
123
float
K_AUX31
= 802;
124
float
K_AUX32
= 803;
125
126
//
127
// mouse buttons generate virtual keys
128
//
129
float
K_MOUSE1
= 512;
130
float
K_MOUSE2
= 513;
131
float
K_MOUSE3
= 514;
132
float
K_MWHEELUP
= 515;
133
float
K_MWHEELDOWN
= 516;
134
float
K_MOUSE4
= 517;
135
float
K_MOUSE5
= 518;
136
float
K_MOUSE6
= 519;
137
float
K_MOUSE7
= 520;
138
float
K_MOUSE8
= 521;
139
float
K_MOUSE9
= 522;
140
float
K_MOUSE10
= 523;
141
float
K_MOUSE11
= 524;
142
float
K_MOUSE12
= 525;
143
float
K_MOUSE13
= 526;
144
float
K_MOUSE14
= 527;
145
float
K_MOUSE15
= 528;
146
float
K_MOUSE16
= 529;
147
K_KP_RIGHTARROW
float K_KP_RIGHTARROW
Definition:
keycodes.qc:60
K_MOUSE14
float K_MOUSE14
Definition:
keycodes.qc:144
K_UPARROW
float K_UPARROW
Definition:
keycodes.qc:15
K_ALT
float K_ALT
Definition:
keycodes.qc:20
K_MOUSE4
float K_MOUSE4
Definition:
keycodes.qc:134
K_ESCAPE
float K_ESCAPE
Definition:
keycodes.qc:9
K_KP_INS
float K_KP_INS
Definition:
keycodes.qc:49
K_F3
float K_F3
Definition:
keycodes.qc:26
K_NUMLOCK
float K_NUMLOCK
Definition:
keycodes.qc:44
K_AUX11
float K_AUX11
Definition:
keycodes.qc:103
K_JOY2
float K_JOY2
Definition:
keycodes.qc:84
K_KP_1
float K_KP_1
Definition:
keycodes.qc:50
K_F5
float K_F5
Definition:
keycodes.qc:28
K_MOUSE12
float K_MOUSE12
Definition:
keycodes.qc:142
K_DOWNARROW
float K_DOWNARROW
Definition:
keycodes.qc:16
K_AUX19
float K_AUX19
Definition:
keycodes.qc:111
K_AUX2
float K_AUX2
Definition:
keycodes.qc:94
K_HOME
float K_HOME
Definition:
keycodes.qc:41
K_AUX13
float K_AUX13
Definition:
keycodes.qc:105
K_KP_7
float K_KP_7
Definition:
keycodes.qc:61
K_KP_DOWNARROW
float K_KP_DOWNARROW
Definition:
keycodes.qc:53
K_MOUSE9
float K_MOUSE9
Definition:
keycodes.qc:139
K_DEL
float K_DEL
Definition:
keycodes.qc:38
K_MOUSE3
float K_MOUSE3
Definition:
keycodes.qc:131
K_F8
float K_F8
Definition:
keycodes.qc:31
K_KP_PLUS
float K_KP_PLUS
Definition:
keycodes.qc:73
K_KP_3
float K_KP_3
Definition:
keycodes.qc:54
K_PAUSE
float K_PAUSE
Definition:
keycodes.qc:78
K_TAB
float K_TAB
Definition:
keycodes.qc:7
K_F9
float K_F9
Definition:
keycodes.qc:32
K_KP_PGDN
float K_KP_PGDN
Definition:
keycodes.qc:55
K_F12
float K_F12
Definition:
keycodes.qc:35
K_AUX18
float K_AUX18
Definition:
keycodes.qc:110
K_AUX1
float K_AUX1
Definition:
keycodes.qc:93
K_KP_4
float K_KP_4
Definition:
keycodes.qc:56
K_AUX8
float K_AUX8
Definition:
keycodes.qc:100
K_AUX23
float K_AUX23
Definition:
keycodes.qc:115
K_SHIFT
float K_SHIFT
Definition:
keycodes.qc:22
K_CAPSLOCK
float K_CAPSLOCK
Definition:
keycodes.qc:45
K_KP_EQUALS
float K_KP_EQUALS
Definition:
keycodes.qc:75
K_AUX12
float K_AUX12
Definition:
keycodes.qc:104
K_AUX5
float K_AUX5
Definition:
keycodes.qc:97
K_SPACE
float K_SPACE
Definition:
keycodes.qc:10
K_KP_SLASH
float K_KP_SLASH
Definition:
keycodes.qc:70
K_AUX17
float K_AUX17
Definition:
keycodes.qc:109
K_RIGHTARROW
float K_RIGHTARROW
Definition:
keycodes.qc:18
K_AUX28
float K_AUX28
Definition:
keycodes.qc:120
K_AUX6
float K_AUX6
Definition:
keycodes.qc:98
K_KP_ENTER
float K_KP_ENTER
Definition:
keycodes.qc:74
K_AUX7
float K_AUX7
Definition:
keycodes.qc:99
K_KP_DIVIDE
float K_KP_DIVIDE
Definition:
keycodes.qc:69
K_AUX24
float K_AUX24
Definition:
keycodes.qc:116
K_MOUSE13
float K_MOUSE13
Definition:
keycodes.qc:143
K_AUX15
float K_AUX15
Definition:
keycodes.qc:107
K_F6
float K_F6
Definition:
keycodes.qc:29
K_BACKSPACE
float K_BACKSPACE
Definition:
keycodes.qc:14
K_AUX14
float K_AUX14
Definition:
keycodes.qc:106
K_MOUSE6
float K_MOUSE6
Definition:
keycodes.qc:136
K_PGDN
float K_PGDN
Definition:
keycodes.qc:39
K_MOUSE15
float K_MOUSE15
Definition:
keycodes.qc:145
K_MOUSE10
float K_MOUSE10
Definition:
keycodes.qc:140
K_MOUSE16
float K_MOUSE16
Definition:
keycodes.qc:146
K_KP_9
float K_KP_9
Definition:
keycodes.qc:65
K_KP_2
float K_KP_2
Definition:
keycodes.qc:52
K_MOUSE7
float K_MOUSE7
Definition:
keycodes.qc:137
K_CTRL
float K_CTRL
Definition:
keycodes.qc:21
K_AUX22
float K_AUX22
Definition:
keycodes.qc:114
K_MOUSE2
float K_MOUSE2
Definition:
keycodes.qc:130
K_AUX10
float K_AUX10
Definition:
keycodes.qc:102
K_AUX26
float K_AUX26
Definition:
keycodes.qc:118
K_KP_8
float K_KP_8
Definition:
keycodes.qc:63
K_AUX21
float K_AUX21
Definition:
keycodes.qc:113
K_KP_5
float K_KP_5
Definition:
keycodes.qc:58
K_MOUSE11
float K_MOUSE11
Definition:
keycodes.qc:141
K_AUX29
float K_AUX29
Definition:
keycodes.qc:121
K_END
float K_END
Definition:
keycodes.qc:42
K_AUX31
float K_AUX31
Definition:
keycodes.qc:123
K_JOY1
float K_JOY1
Definition:
keycodes.qc:83
K_KP_MINUS
float K_KP_MINUS
Definition:
keycodes.qc:72
K_KP_MULTIPLY
float K_KP_MULTIPLY
Definition:
keycodes.qc:71
K_MWHEELDOWN
float K_MWHEELDOWN
Definition:
keycodes.qc:133
K_MOUSE1
float K_MOUSE1
Definition:
keycodes.qc:129
K_AUX32
float K_AUX32
Definition:
keycodes.qc:124
K_KP_6
float K_KP_6
Definition:
keycodes.qc:59
K_AUX30
float K_AUX30
Definition:
keycodes.qc:122
K_KP_HOME
float K_KP_HOME
Definition:
keycodes.qc:62
K_F11
float K_F11
Definition:
keycodes.qc:34
K_LEFTARROW
float K_LEFTARROW
Definition:
keycodes.qc:17
K_F2
float K_F2
Definition:
keycodes.qc:25
K_AUX3
float K_AUX3
Definition:
keycodes.qc:95
K_JOY4
float K_JOY4
Definition:
keycodes.qc:86
K_AUX20
float K_AUX20
Definition:
keycodes.qc:112
K_ENTER
float K_ENTER
Definition:
keycodes.qc:8
K_JOY3
float K_JOY3
Definition:
keycodes.qc:85
K_F10
float K_F10
Definition:
keycodes.qc:33
K_AUX25
float K_AUX25
Definition:
keycodes.qc:117
K_AUX27
float K_AUX27
Definition:
keycodes.qc:119
K_AUX4
float K_AUX4
Definition:
keycodes.qc:96
K_KP_END
float K_KP_END
Definition:
keycodes.qc:51
K_AUX16
float K_AUX16
Definition:
keycodes.qc:108
K_F7
float K_F7
Definition:
keycodes.qc:30
K_F1
float K_F1
Definition:
keycodes.qc:24
K_MOUSE8
float K_MOUSE8
Definition:
keycodes.qc:138
K_INS
float K_INS
Definition:
keycodes.qc:37
K_KP_PGUP
float K_KP_PGUP
Definition:
keycodes.qc:66
K_KP_LEFTARROW
float K_KP_LEFTARROW
Definition:
keycodes.qc:57
K_PGUP
float K_PGUP
Definition:
keycodes.qc:40
K_KP_UPARROW
float K_KP_UPARROW
Definition:
keycodes.qc:64
K_MWHEELUP
float K_MWHEELUP
Definition:
keycodes.qc:132
K_KP_DEL
float K_KP_DEL
Definition:
keycodes.qc:68
K_KP_PERIOD
float K_KP_PERIOD
Definition:
keycodes.qc:67
K_AUX9
float K_AUX9
Definition:
keycodes.qc:101
K_SCROLLOCK
float K_SCROLLOCK
Definition:
keycodes.qc:46
K_KP_0
float K_KP_0
Definition:
keycodes.qc:48
K_MOUSE5
float K_MOUSE5
Definition:
keycodes.qc:135
K_F4
float K_F4
Definition:
keycodes.qc:27
dpdefs
upstream
keycodes.qc
Generated on Thu Mar 17 2022 17:26:29 for Xonotic by
1.8.13