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