mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-14 23:11:51 +08:00
Merge pull request #46 from LoveEevee/keyboard-add-tatacon
Keyboard: Add TaTaCon buttons
This commit is contained in:
commit
1c0261fe6d
@ -15,6 +15,7 @@
|
||||
<title>太鼓の達人ウェブ - Taiko no Tatsujin Web</title>
|
||||
<link rel="icon" href="/assets/img/favicon.png" type="image/png">
|
||||
<meta name="viewport" content="width=device-width, user-scalable=no">
|
||||
<meta name="apple-mobile-web-app-capable" content="yes">
|
||||
|
||||
<link rel="stylesheet" href="/src/css/main.css"/>
|
||||
<link rel="stylesheet" href="/src/css/loader.css">
|
||||
|
@ -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"]
|
||||
|
@ -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()
|
||||
|
@ -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
|
||||
|
@ -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"],
|
||||
|
@ -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()
|
||||
}
|
||||
|
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user