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