forked from arne/asdf-games
Added some more keys to KeyControls.js
This commit is contained in:
parent
fb755bec7e
commit
17a13eb0c0
@ -19,6 +19,21 @@ class KeyControls {
|
||||
return this.keys[32];
|
||||
}
|
||||
|
||||
get ctrl() {
|
||||
// Control
|
||||
return this.keys[17];
|
||||
}
|
||||
|
||||
get shift() {
|
||||
// Shift
|
||||
return this.keys[16];
|
||||
}
|
||||
|
||||
get escape() {
|
||||
// Escape
|
||||
return this.keys[27];
|
||||
}
|
||||
|
||||
get x() {
|
||||
// Arrow Left or A (WASD)
|
||||
if (this.keys[37] || this.keys[65]) {
|
||||
|
Loading…
Reference in New Issue
Block a user