auto controller on mobile
This commit is contained in:
parent
85bb92bb4f
commit
ba348975dd
1 changed files with 4 additions and 0 deletions
|
|
@ -143,6 +143,10 @@ function toggleController() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (window.innerWidth <= 479) {
|
||||||
|
toggleController()
|
||||||
|
}
|
||||||
|
|
||||||
function gameLoop() {
|
function gameLoop() {
|
||||||
if (!dialogMode && controlsMode) {
|
if (!dialogMode && controlsMode) {
|
||||||
dialog.controlsElem.style.display = 'block'
|
dialog.controlsElem.style.display = 'block'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue