Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
T
Taiko Web
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Taiko Web
Commits
32caec8f
Commit
32caec8f
authored
Oct 08, 2018
by
LoveEevee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keyboard: Add TaTaCon buttons
parent
13f9981e
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
10 additions
and
10 deletions
+10
-10
public/index.html
public/index.html
+1
-0
public/src/js/keyboard.js
public/src/js/keyboard.js
+3
-3
public/src/js/loader.js
public/src/js/loader.js
+1
-1
public/src/js/scoresheet.js
public/src/js/scoresheet.js
+1
-1
public/src/js/songselect.js
public/src/js/songselect.js
+1
-1
public/src/js/titlescreen.js
public/src/js/titlescreen.js
+2
-3
public/src/js/tutorial.js
public/src/js/tutorial.js
+1
-1
No files found.
public/index.html
View file @
32caec8f
...
...
@@ -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"
>
...
...
public/src/js/keyboard.js
View file @
32caec8f
...
...
@@ -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
"
]
...
...
public/src/js/loader.js
View file @
32caec8f
...
...
@@ -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
()
...
...
public/src/js/scoresheet.js
View file @
32caec8f
...
...
@@ -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
...
...
public/src/js/songselect.js
View file @
32caec8f
...
...
@@ -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
"
],
...
...
public/src/js/titlescreen.js
View file @
32caec8f
...
...
@@ -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
()
}
...
...
public/src/js/tutorial.js
View file @
32caec8f
...
...
@@ -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
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment