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 
float K_KP_RIGHTARROW
Definition: keycodes.qc:60
float K_MOUSE14
Definition: keycodes.qc:144
float K_UPARROW
Definition: keycodes.qc:15
float K_ALT
Definition: keycodes.qc:20
float K_MOUSE4
Definition: keycodes.qc:134
float K_ESCAPE
Definition: keycodes.qc:9
float K_KP_INS
Definition: keycodes.qc:49
float K_F3
Definition: keycodes.qc:26
float K_NUMLOCK
Definition: keycodes.qc:44
float K_AUX11
Definition: keycodes.qc:103
float K_JOY2
Definition: keycodes.qc:84
float K_KP_1
Definition: keycodes.qc:50
float K_F5
Definition: keycodes.qc:28
float K_MOUSE12
Definition: keycodes.qc:142
float K_DOWNARROW
Definition: keycodes.qc:16
float K_AUX19
Definition: keycodes.qc:111
float K_AUX2
Definition: keycodes.qc:94
float K_HOME
Definition: keycodes.qc:41
float K_AUX13
Definition: keycodes.qc:105
float K_KP_7
Definition: keycodes.qc:61
float K_KP_DOWNARROW
Definition: keycodes.qc:53
float K_MOUSE9
Definition: keycodes.qc:139
float K_DEL
Definition: keycodes.qc:38
float K_MOUSE3
Definition: keycodes.qc:131
float K_F8
Definition: keycodes.qc:31
float K_KP_PLUS
Definition: keycodes.qc:73
float K_KP_3
Definition: keycodes.qc:54
float K_PAUSE
Definition: keycodes.qc:78
float K_TAB
Definition: keycodes.qc:7
float K_F9
Definition: keycodes.qc:32
float K_KP_PGDN
Definition: keycodes.qc:55
float K_F12
Definition: keycodes.qc:35
float K_AUX18
Definition: keycodes.qc:110
float K_AUX1
Definition: keycodes.qc:93
float K_KP_4
Definition: keycodes.qc:56
float K_AUX8
Definition: keycodes.qc:100
float K_AUX23
Definition: keycodes.qc:115
float K_SHIFT
Definition: keycodes.qc:22
float K_CAPSLOCK
Definition: keycodes.qc:45
float K_KP_EQUALS
Definition: keycodes.qc:75
float K_AUX12
Definition: keycodes.qc:104
float K_AUX5
Definition: keycodes.qc:97
float K_SPACE
Definition: keycodes.qc:10
float K_KP_SLASH
Definition: keycodes.qc:70
float K_AUX17
Definition: keycodes.qc:109
float K_RIGHTARROW
Definition: keycodes.qc:18
float K_AUX28
Definition: keycodes.qc:120
float K_AUX6
Definition: keycodes.qc:98
float K_KP_ENTER
Definition: keycodes.qc:74
float K_AUX7
Definition: keycodes.qc:99
float K_KP_DIVIDE
Definition: keycodes.qc:69
float K_AUX24
Definition: keycodes.qc:116
float K_MOUSE13
Definition: keycodes.qc:143
float K_AUX15
Definition: keycodes.qc:107
float K_F6
Definition: keycodes.qc:29
float K_BACKSPACE
Definition: keycodes.qc:14
float K_AUX14
Definition: keycodes.qc:106
float K_MOUSE6
Definition: keycodes.qc:136
float K_PGDN
Definition: keycodes.qc:39
float K_MOUSE15
Definition: keycodes.qc:145
float K_MOUSE10
Definition: keycodes.qc:140
float K_MOUSE16
Definition: keycodes.qc:146
float K_KP_9
Definition: keycodes.qc:65
float K_KP_2
Definition: keycodes.qc:52
float K_MOUSE7
Definition: keycodes.qc:137
float K_CTRL
Definition: keycodes.qc:21
float K_AUX22
Definition: keycodes.qc:114
float K_MOUSE2
Definition: keycodes.qc:130
float K_AUX10
Definition: keycodes.qc:102
float K_AUX26
Definition: keycodes.qc:118
float K_KP_8
Definition: keycodes.qc:63
float K_AUX21
Definition: keycodes.qc:113
float K_KP_5
Definition: keycodes.qc:58
float K_MOUSE11
Definition: keycodes.qc:141
float K_AUX29
Definition: keycodes.qc:121
float K_END
Definition: keycodes.qc:42
float K_AUX31
Definition: keycodes.qc:123
float K_JOY1
Definition: keycodes.qc:83
float K_KP_MINUS
Definition: keycodes.qc:72
float K_KP_MULTIPLY
Definition: keycodes.qc:71
float K_MWHEELDOWN
Definition: keycodes.qc:133
float K_MOUSE1
Definition: keycodes.qc:129
float K_AUX32
Definition: keycodes.qc:124
float K_KP_6
Definition: keycodes.qc:59
float K_AUX30
Definition: keycodes.qc:122
float K_KP_HOME
Definition: keycodes.qc:62
float K_F11
Definition: keycodes.qc:34
float K_LEFTARROW
Definition: keycodes.qc:17
float K_F2
Definition: keycodes.qc:25
float K_AUX3
Definition: keycodes.qc:95
float K_JOY4
Definition: keycodes.qc:86
float K_AUX20
Definition: keycodes.qc:112
float K_ENTER
Definition: keycodes.qc:8
float K_JOY3
Definition: keycodes.qc:85
float K_F10
Definition: keycodes.qc:33
float K_AUX25
Definition: keycodes.qc:117
float K_AUX27
Definition: keycodes.qc:119
float K_AUX4
Definition: keycodes.qc:96
float K_KP_END
Definition: keycodes.qc:51
float K_AUX16
Definition: keycodes.qc:108
float K_F7
Definition: keycodes.qc:30
float K_F1
Definition: keycodes.qc:24
float K_MOUSE8
Definition: keycodes.qc:138
float K_INS
Definition: keycodes.qc:37
float K_KP_PGUP
Definition: keycodes.qc:66
float K_KP_LEFTARROW
Definition: keycodes.qc:57
float K_PGUP
Definition: keycodes.qc:40
float K_KP_UPARROW
Definition: keycodes.qc:64
float K_MWHEELUP
Definition: keycodes.qc:132
float K_KP_DEL
Definition: keycodes.qc:68
float K_KP_PERIOD
Definition: keycodes.qc:67
float K_AUX9
Definition: keycodes.qc:101
float K_SCROLLOCK
Definition: keycodes.qc:46
float K_KP_0
Definition: keycodes.qc:48
float K_MOUSE5
Definition: keycodes.qc:135
float K_F4
Definition: keycodes.qc:27