update more keybinds
This commit is contained in:
parent
117e32e578
commit
ab2e3d2417
@ -42,8 +42,8 @@ class Scoresheet{
|
|||||||
code = event.keyCode
|
code = event.keyCode
|
||||||
}
|
}
|
||||||
var key = {
|
var key = {
|
||||||
confirm: code == 13 || code == 32 || code == 86 || code == 66,
|
confirm: code == 13 || code == 32 || code == 70 || code == 74,
|
||||||
// Enter, Space, V, B
|
// Enter, Space, F, J
|
||||||
cancel: code == 27 || code == 8
|
cancel: code == 27 || code == 8
|
||||||
// Esc, Backspace
|
// Esc, Backspace
|
||||||
}
|
}
|
||||||
|
@ -255,14 +255,14 @@ class SongSelect{
|
|||||||
}
|
}
|
||||||
|
|
||||||
var key = {
|
var key = {
|
||||||
confirm: code == 13 || code == 32 || code == 86 || code == 66,
|
confirm: code == 13 || code == 32 || code == 70 || code == 74,
|
||||||
// Enter, Space, V, B
|
// Enter, Space, F, J
|
||||||
cancel: code == 27 || code == 8,
|
cancel: code == 27 || code == 8,
|
||||||
// Esc, Backspace
|
// Esc, Backspace
|
||||||
left: code == 70 || code == 68,
|
left: code == 68,
|
||||||
// Left
|
// Left, D
|
||||||
right: code == 74 || code == 75
|
right: code == 75
|
||||||
// Right
|
// Right, K
|
||||||
}
|
}
|
||||||
if(key.cancel && event){
|
if(key.cancel && event){
|
||||||
event.preventDefault()
|
event.preventDefault()
|
||||||
|
@ -17,8 +17,8 @@ class Titlescreen{
|
|||||||
if(!code){
|
if(!code){
|
||||||
code = event.keyCode
|
code = event.keyCode
|
||||||
}
|
}
|
||||||
if(code == 13 || code == 32 || code == 86 || code == 66){
|
if(code == 13 || code == 32 || code == 70 || code == 74){
|
||||||
// Enter, Space, V, B
|
// Enter, Space, F, J
|
||||||
this.onPressed()
|
this.onPressed()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user