DirectX Scan Codes

From the Fallout4 CreationKit Wiki
Revision as of 01:15, 4 August 2017 by imported>Qazaaq (Added X and C)
Jump to navigation Jump to search

A scan code is a number assigned to each key on a keyboard. A keyboard reports which keys have been pressed by sending this code to the computer.

Button  Dec
Escape  27  
Q  81
W  87
E  69
R  82
T  84
Y  89
U  85
I  73
O  79
P  80
TAB  9
ENTER  13
A  65
S  83
D  68
F  70
G  71
H  72
J  74
K  75
L  76
;  186
Z  90
X  88
C  67
V  86
B  66  
N  78
M  77
,  188
.  190
/  191
L-SHIFT  160
R-SHIFT  161
SPACE  32
L-ALT  164
R-ALT  165
L-CTRL  162
R-CTRL  163
1  49
2  50
3  51
4  52
5  53
6  54
7  55
8  56
9  57
0  48
-  189
=  187
BACKSPACE  8
UP  38
LEFT  37
DOWN  40
RIGHT  39
DELETE  46
END  35
PGDOWN  34
PGUP  33
HOME  36
Num0  96
Num1  97
Num2  98
Num3  99
Num4  100
Num5  101
Num6  102
Num7  103
Num8  104
Num9  105
Num.  110
NumENTER  13
Num+  107
Num-  109
Num*  106
Num/  111
F1  112
F2  113
F3  114
F4  115
F5  116
F6  117
F7  118
F8  119
F9  120
F10  121
F11  122

Notes

  • It seems that some keys don't fire if they are used by game, such as L-Alt and L-Ctrl. (They must be unused by control scheme).

See Also