KeyCode
*此內容是使用 AI(Beta 測試版)翻譯,可能含有錯誤。若要以英文檢視此頁面,請按一下這裡。
枚舉 KeyCode 包含一個列表代表用戶輸入中涉及的鍵或按鈕的字元碼列表。此枚列還包括游戏手柄上的按鈕和軸,以及非標準按鈕的 96 World[] 值。
請注意,鍵盤值指的是標準 QWERTY 鍵盤上按鈕的物理位置。如果使用者的系統正確配置,鍵的位置(例如 W A S D )將在其他鍵盤類型(例如Dvorak鍵盤)上保持相同,將映射到, A O E 。
也見 InputObject , 用於鍵盤和遊戲手柄輸入。
道具
名稱 | 值 | 概要 |
---|---|---|
Unknown | 0 | 代表沒有按下鍵的空白值。 |
Backspace | 8 | Backspace 鍵。 |
Tab | 9 | Tab 鍵。 |
Clear | 12 | 只在特定鍵盤上出現。 |
Return | 13 | 常見的名稱為 輸入 。 |
Pause | 19 | 只在特定鍵盤上出現。 |
Escape | 27 | Escape 鍵。 |
Space | 32 | Space 鍵。 |
QuotedDouble | 34 | " 鍵。 |
Hash | 35 | # 鍵。 |
Dollar | 36 | $ 鍵。 |
Percent | 37 | % 鍵。 |
Ampersand | 38 | & 鍵。 |
Quote | 39 | ' 鍵。 |
LeftParenthesis | 40 | ( 鍵。 |
RightParenthesis | 41 | ) 鍵。 |
Asterisk | 42 | * 鍵。 |
Plus | 43 | + 鍵。 |
Comma | 44 | , 鍵。 |
Minus | 45 | - 鍵。 |
Period | 46 | . 鍵。 |
Slash | 47 | / 鍵。 |
Zero | 48 | 0 鍵。 |
One | 49 | 1 鍵。 |
Two | 50 | 2 鍵。 |
Three | 51 | 3 鍵。 |
Four | 52 | 4 鍵。 |
Five | 53 | 5 鍵。 |
Six | 54 | 6 鍵。 |
Seven | 55 | 7 鍵。 |
Eight | 56 | 8 鍵。 |
Nine | 57 | 9 鍵。 |
Colon | 58 | : 鍵。 |
Semicolon | 59 | ; 鍵。 |
LessThan | 60 | < 鍵。 |
Equals | 61 | = 鍵。 |
GreaterThan | 62 | > 鍵。 |
Question | 63 | ? 鍵。 |
At | 64 | @ 鍵。 |
LeftBracket | 91 | [ 鍵。 |
BackSlash | 92 | \ 鍵。 |
RightBracket | 93 | ] 鍵。 |
Caret | 94 | ^ 鍵。 |
Underscore | 95 | _ 鍵。 |
Backquote | 96 | ` 鍵。 |
A | 97 | A 鍵。 |
B | 98 | B 鍵。 |
C | 99 | C 鍵。 |
D | 100 | D 鍵。 |
E | 101 | E 鍵。 |
F | 102 | F 鍵。 |
G | 103 | G 鍵。 |
H | 104 | H 鍵。 |
I | 105 | I 鍵。 |
J | 106 | J 鍵。 |
K | 107 | K 鍵。 |
L | 108 | L 鍵。 |
M | 109 | M 鍵。 |
N | 110 | N 鍵。 |
O | 111 | O 鍵。 |
P | 112 | P 鍵。 |
Q | 113 | Q 鍵。 |
R | 114 | R 鍵。 |
S | 115 | S 鍵。 |
T | 116 | T 鍵。 |
U | 117 | U 鍵。 |
V | 118 | V 鍵。 |
W | 119 | W 鍵。 |
X | 120 | X 鍵。 |
Y | 121 | Y 鍵。 |
Z | 122 | Z 鍵。 |
LeftCurly | 123 | { 鍵。 |
Pipe | 124 | | 鍵。 |
RightCurly | 125 | } 鍵。 |
Tilde | 126 | ~ 鍵。 |
Delete | 127 | Del 鍵。 |
World0 | 160 | |
World1 | 161 | |
World2 | 162 | |
World3 | 163 | |
World4 | 164 | |
World5 | 165 | |
World6 | 166 | |
World7 | 167 | |
World8 | 168 | |
World9 | 169 | |
World10 | 170 | |
World11 | 171 | |
World12 | 172 | |
World13 | 173 | |
World14 | 174 | |
World15 | 175 | |
World16 | 176 | |
World17 | 177 | |
World18 | 178 | |
World19 | 179 | |
World20 | 180 | |
World21 | 181 | |
World22 | 182 | |
World23 | 183 | |
World24 | 184 | |
World25 | 185 | |
World26 | 186 | |
World27 | 187 | |
World28 | 188 | |
World29 | 189 | |
World30 | 190 | |
World31 | 191 | |
World32 | 192 | |
World33 | 193 | |
World34 | 194 | |
World35 | 195 | |
World36 | 196 | |
World37 | 197 | |
World38 | 198 | |
World39 | 199 | |
World40 | 200 | |
World41 | 201 | |
World42 | 202 | |
World43 | 203 | |
World44 | 204 | |
World45 | 205 | |
World46 | 206 | |
World47 | 207 | |
World48 | 208 | |
World49 | 209 | |
World50 | 210 | |
World51 | 211 | |
World52 | 212 | |
World53 | 213 | |
World54 | 214 | |
World55 | 215 | |
World56 | 216 | |
World57 | 217 | |
World58 | 218 | |
World59 | 219 | |
World60 | 220 | |
World61 | 221 | |
World62 | 222 | |
World63 | 223 | |
World64 | 224 | |
World65 | 225 | |
World66 | 226 | |
World67 | 227 | |
World68 | 228 | |
World69 | 229 | |
World70 | 230 | |
World71 | 231 | |
World72 | 232 | |
World73 | 233 | |
World74 | 234 | |
World75 | 235 | |
World76 | 236 | |
World77 | 237 | |
World78 | 238 | |
World79 | 239 | |
World80 | 240 | |
World81 | 241 | |
World82 | 242 | |
World83 | 243 | |
World84 | 244 | |
World85 | 245 | |
World86 | 246 | |
World87 | 247 | |
World88 | 248 | |
World89 | 249 | |
World90 | 250 | |
World91 | 251 | |
World92 | 252 | |
World93 | 253 | |
World94 | 254 | |
World95 | 255 | |
KeypadZero | 256 | 鍵盤集群上的 0 鍵。 |
KeypadOne | 257 | 鍵盤集群上的 1 鍵。 |
KeypadTwo | 258 | 鍵盤集群上的 2 鍵。 |
KeypadThree | 259 | 鍵盤集群上的 3 鍵。 |
KeypadFour | 260 | 鍵盤集群上的 4 鍵。 |
KeypadFive | 261 | 鍵盤集群上的 5 鍵。 |
KeypadSix | 262 | 鍵盤集群上的 6 鍵。 |
KeypadSeven | 263 | 鍵盤集群上的 7 鍵。 |
KeypadEight | 264 | 鍵盤集群上的 8 鍵。 |
KeypadNine | 265 | 鍵盤集群上的 9 鍵。 |
KeypadPeriod | 266 | 鍵盤集群上的 . 鍵。 |
KeypadDivide | 267 | 鍵盤集群上的 / 鍵。 |
KeypadMultiply | 268 | 鍵盤集群上的 * 鍵。 |
KeypadMinus | 269 | 鍵盤集群上的 - 鍵。 |
KeypadPlus | 270 | 鍵盤集群上的 + 鍵。 |
KeypadEnter | 271 | 鍵盤集群上的 Enter 鍵。 |
KeypadEquals | 272 | 鍵盤集群上的 = 鍵。 |
Up | 273 | ↑箭頭鍵。 |
Down | 274 | ↓箭頭鍵。 |
Right | 275 | →箭頭鍵。 |
Left | 276 | ←箭頭鍵。 |
Insert | 277 | Insert 鍵。 |
Home | 278 | Home 鍵。 |
End | 279 | End 鍵。 |
PageUp | 280 | PgUp 鍵。 |
PageDown | 281 | PgDown 鍵。 |
F1 | 282 | F1 鍵。 |
F2 | 283 | F2 鍵。 |
F3 | 284 | F3 鍵。 |
F4 | 285 | F4 鍵。 |
F5 | 286 | F5 鍵。 |
F6 | 287 | F6 鍵。 |
F7 | 288 | F7 鍵。 |
F8 | 289 | F8 鍵。 |
F9 | 290 | F9 鍵。 |
F10 | 291 | F10 鍵。 |
F11 | 292 | F11 鍵。 |
F12 | 293 | F12 鍵。 |
F13 | 294 | F13 鍵。只在特定鍵盤上出現。 |
F14 | 295 | F14 鍵。只在特定鍵盤上出現。 |
F15 | 296 | F15 鍵。只在特定鍵盤上出現。 |
NumLock | 300 | 鍵盤集群上的 Num Lock 鍵。 |
CapsLock | 301 | Caps Lock 鍵。 |
ScrollLock | 302 | Scr Lock 鍵。 |
RightShift | 303 | 右側 Shift 鍵。 |
LeftShift | 304 | 左側 Shift 鍵。 |
RightControl | 305 | 右側 Ctrl 鍵。 |
LeftControl | 306 | 左側 Ctrl 鍵。 |
RightAlt | 307 | 右側 Alt 鍵。 |
LeftAlt | 308 | 左側 Alt 鍵。 |
RightMeta | 309 | 右側 Meta 鍵。 |
LeftMeta | 310 | 左側 Meta 鍵。 |
LeftSuper | 311 | 左側 Super 鍵。通常稱為 Windows 鍵或 cmd 鍵。 |
RightSuper | 312 | 右側 Super 鍵。通常稱為 Windows 鍵或 cmd 鍵。 |
Mode | 313 | 只在特定鍵盤上出現。 |
Compose | 314 | 只在特定鍵盤上出現。 |
Help | 315 | 只在特定鍵盤上出現。 |
316 | 只在特定鍵盤上出現。 | |
SysReq | 317 | 只在特定鍵盤上出現。 |
Break | 318 | 只在特定鍵盤上出現。 |
Menu | 319 | Menu 鍵。 |
Power | 320 | 只在特定鍵盤上出現。 |
Euro | 321 | € 鍵。只在特定鍵盤上出現。 |
Undo | 322 | 只在特定鍵盤上出現。 |
ButtonX | 1000 | 遊戲控制器 X |
ButtonY | 1001 | 遊戲控制器 Y |
ButtonA | 1002 | 遊戲控制器 A |
ButtonB | 1003 | 遊戲控制器 B |
ButtonR1 | 1004 | 遊戲控制器 R1 |
ButtonL1 | 1005 | 遊戲控制器 L1 |
ButtonR2 | 1006 | 遊戲控制器 R2 |
ButtonL2 | 1007 | 遊戲控制器 L2 |
ButtonR3 | 1008 | 遊戲控制器 R3 |
ButtonL3 | 1009 | 遊戲控制器 L3 |
ButtonStart | 1010 | 遊戲控制器 Start |
ButtonSelect | 1011 | 遊戲控制器 Select |
DPadLeft | 1012 | 遊戲控制器上的左方向箭頭。 |
DPadRight | 1013 | 遊戲控制器上的右向箭頭。 |
DPadUp | 1014 | 遊戲控制器上的向上箭頭。 |
DPadDown | 1015 | 遊戲控制器上的向下箭頭。 |
Thumbstick1 | 1016 | 遊戲手柄主要搖桿。 |
Thumbstick2 | 1017 | 遊戲手柄的副拇指。 |
MouseLeftButton | 1018 | |
MouseRightButton | 1019 | |
MouseMiddleButton | 1020 | |
MouseBackButton | 1021 | |
MouseNoButton | 1022 | |
MouseX | 1023 | |
MouseY | 1024 |