mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-12-23 09:46:15 +08:00
update default keybinds
This commit is contained in:
parent
1a2753c411
commit
117e32e578
@ -4,10 +4,10 @@ class Keyboard{
|
||||
this.game = this.controller.game
|
||||
|
||||
this.kbd = {
|
||||
"don_l": 86, // V
|
||||
"don_r": 66, // B
|
||||
"ka_l": 67, // C
|
||||
"ka_r": 78, // N
|
||||
"don_l": 70, // F
|
||||
"don_r": 74, // J
|
||||
"ka_l": 68, // D
|
||||
"ka_r": 75, // K
|
||||
"pause": 81, // Q
|
||||
"back": 8, // Backspace
|
||||
"previous": 38, // Up
|
||||
|
@ -253,15 +253,16 @@ class SongSelect{
|
||||
if(code === "ctrl" || code === "shift"){
|
||||
return
|
||||
}
|
||||
|
||||
var key = {
|
||||
confirm: code == 13 || code == 32 || code == 86 || code == 66,
|
||||
// Enter, Space, V, B
|
||||
cancel: code == 27 || code == 8,
|
||||
// Esc, Backspace
|
||||
left: code == 37 || code == 67,
|
||||
// Left, C
|
||||
right: code == 39 || code == 78
|
||||
// Right, N
|
||||
left: code == 70 || code == 68,
|
||||
// Left
|
||||
right: code == 74 || code == 75
|
||||
// Right
|
||||
}
|
||||
if(key.cancel && event){
|
||||
event.preventDefault()
|
||||
|
@ -3,8 +3,8 @@
|
||||
<div id="tutorial-title" class="stroke-sub" alt="How to Play">How to Play</div>
|
||||
<div id="tutorial-content">
|
||||
<p>Hit the drum when the notes reach the taiko!</p>
|
||||
<p>For red notes, hit the face of the drum (<kbd>V</kbd> or <kbd>B</kbd>)...</p>
|
||||
<p>...and for blue notes, hit the rim! (<kbd>C</kbd> or <kbd>N</kbd>)</p>
|
||||
<p>For red notes, hit the face of the drum (<kbd>F</kbd> or <kbd>J</kbd>)...</p>
|
||||
<p>...and for blue notes, hit the rim! (<kbd>D</kbd> or <kbd>K</kbd>)</p>
|
||||
<p>USB controllers are also supported!</p>
|
||||
<p>
|
||||
<span style="font-weight:bold;">Other controls</span><br>
|
||||
|
Loading…
Reference in New Issue
Block a user