diff --git a/public/index.html b/public/index.html
index da43ec0..c6524f9 100644
--- a/public/index.html
+++ b/public/index.html
@@ -15,6 +15,7 @@
太鼓の達人ウェブ - Taiko no Tatsujin Web
+
diff --git a/public/src/js/keyboard.js b/public/src/js/keyboard.js
index 30871d1..057de33 100644
--- a/public/src/js/keyboard.js
+++ b/public/src/js/keyboard.js
@@ -24,8 +24,8 @@ class Keyboard{
}
var gameBtn = {}
- gameBtn[this.kbd["don_l"]] = ["u", "d", "l", "r"]
- gameBtn[this.kbd["don_r"]] = ["a", "b", "x", "y"]
+ gameBtn[this.kbd["don_l"]] = ["u", "d", "l", "r", "ls"]
+ gameBtn[this.kbd["don_r"]] = ["a", "b", "x", "y", "rs"]
gameBtn[this.kbd["ka_l"]] = ["lb", "lt"]
gameBtn[this.kbd["ka_r"]] = ["rb", "rt"]
this.gamepad = new Gamepad(gameBtn)
@@ -33,7 +33,7 @@ class Keyboard{
var menuBtn = {
"cancel": ["a"],
}
- menuBtn[this.kbd["confirm"]] = ["b"]
+ menuBtn[this.kbd["confirm"]] = ["b", "ls", "rs"]
menuBtn[this.kbd["previous"]] = ["u", "l", "lb", "lt"],
menuBtn[this.kbd["next"]] = ["d", "r", "rb", "rt"]
menuBtn[this.kbd["pause"]] = ["start"]
diff --git a/public/src/js/loader.js b/public/src/js/loader.js
index f023177..2270925 100644
--- a/public/src/js/loader.js
+++ b/public/src/js/loader.js
@@ -11,7 +11,7 @@ class Loader{
this.screen.innerHTML = page
this.loaderPercentage = document.querySelector("#loader .percentage")
this.loaderProgress = document.querySelector("#loader .progress")
-
+
snd.buffer = new SoundBuffer()
snd.musicGain = snd.buffer.createGain()
snd.sfxGain = snd.buffer.createGain()
diff --git a/public/src/js/scoresheet.js b/public/src/js/scoresheet.js
index df73a02..67b540f 100644
--- a/public/src/js/scoresheet.js
+++ b/public/src/js/scoresheet.js
@@ -23,7 +23,7 @@ class Scoresheet{
this.draw = new CanvasDraw()
this.gamepad = new Gamepad({
- "13": ["a", "b", "start"]
+ "13": ["a", "b", "start", "ls", "rs"]
})
this.redrawRunning = true
diff --git a/public/src/js/songselect.js b/public/src/js/songselect.js
index e113b28..dd1c151 100644
--- a/public/src/js/songselect.js
+++ b/public/src/js/songselect.js
@@ -187,7 +187,7 @@ class SongSelect{
this.pressedKeys = {}
this.gamepad = new Gamepad({
- "13": ["b", "start"],
+ "13": ["b", "start", "ls", "rs"],
"8": ["a"],
"37": ["l", "lb", "lt"],
"39": ["r", "rb", "rt"],
diff --git a/public/src/js/titlescreen.js b/public/src/js/titlescreen.js
index 63cdd89..61d1fa4 100644
--- a/public/src/js/titlescreen.js
+++ b/public/src/js/titlescreen.js
@@ -7,9 +7,8 @@ class Titlescreen{
pageEvents.once(this.titleScreen, "touchstart").then(this.onPressed.bind(this))
assets.sounds["title"].play()
this.gamepad = new Gamepad({
- "start": ["b", "x", "y", "start"],
- "a": ["a"]
- }, (pressed, key) => {
+ "start": ["a", "b", "x", "y", "start", "ls", "rs"]
+ }, pressed => {
if(pressed){
this.onPressed()
}
diff --git a/public/src/js/tutorial.js b/public/src/js/tutorial.js
index ba37a0e..4059a0e 100644
--- a/public/src/js/tutorial.js
+++ b/public/src/js/tutorial.js
@@ -10,7 +10,7 @@ class Tutorial{
pageEvents.keyOnce(this, 13, "down").then(this.onEnd.bind(this))
this.gamepad = new Gamepad({
- "confirm": ["start", "b"]
+ "confirm": ["start", "b", "ls", "rs"]
}, this.onEnd.bind(this))
}
onEnd(event){