Added some more keys to KeyControls.js

This commit is contained in:
Arne van Iterson 2020-03-29 18:39:23 +02:00
parent fb755bec7e
commit 17a13eb0c0

View File

@ -19,6 +19,21 @@ class KeyControls {
return this.keys[32]; 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() { get x() {
// Arrow Left or A (WASD) // Arrow Left or A (WASD)
if (this.keys[37] || this.keys[65]) { if (this.keys[37] || this.keys[65]) {