bind

From Alphaver Wiki
Jump to navigation Jump to search


The bind command is a command introduced in Alpha 1.0.16.05_20 Cypress.

Syntax

The basic format for the bind command goes as follows:

bind <Key Code> <Command>

For example, after the command bind 44 mat_fullbright 1 is run, pressing the Z key will enable mat_fullbright 1.

Key Codes

A list of accepted keys and their numerical codes.[1][2]

If you have the console open, holding the Left Ctrl key while pressing a letter key will insert the letter's key code instead of the letter for most keys.

Key Code Key
1 Escape
2 1
3 2
4 3
5 4
6 5
7 6
8 7
9 8
10 9
11 0
12 -
13 =
14 Backspace
15 Tab
16 Q
17 W
18 E
19 R
20 T
21 Y
22 U
23 I
24 O
25 P
26 [
27 ]
28 Enter/Return
29 Left Control
30 A
31 S
32 D
33 F
34 G
35 H
36 J
37 K
38 L
39 ;
41 ~
42 Left Shift
43 Backslash
44 Z
45 X
46 C
47 V
48 B
49 N
50 M
51 ,
52 .
53 Right Slash
54 Right Shift
55 Keypad *
56 Kana
57 Spacebar
58 Caps Lock
59 F1
60 F2
61 F3
62 F4
63 F5
64 F6
65 F7
66 F8
67 F9
68 F10
69 Numlock
70 Scroll Lock
71 Numpad 7
72 Numpad 8
73 Numpad 9
74 Numpad -
75 Numpad 4
76 Numpad 5
77 Numpad 6
78 Numpad +
79 Numpad 1
80 Numpad 2
81 Numpad 3
82 Numpad 0
83 Numpad .
87 F11
88 F12
100 F13
101 F14
102 F15
103 F16
104 F17
105 F18
112 Kana
113 F19
121 Convert
123 Noconvert
125 ¥
141 Numpad =
144 ^
145 @
146 :
147 _
148 Kanji
149 Stop
150 Ax
151 Unlabeled
156 Numpad Enter
157 Right Control
167 §
179 Keypad ,
181 Keypad /
183 SysRq
184 Right Menu/Alt
196 Fn/Function
197 Pause
199 Home
200 Up Arrow
201 Page Up
203 Left Arrow
205 Right Arrow
207 End
208 Down Arrow
209 Page Down
210 Insert
211 Delete
219 Left Super/Windows
220 Right Super/Windows
221 Apps
222 Power
223 Sleep