diff --git a/src/app.ts b/src/app.ts index 4112478..f9c1a46 100644 --- a/src/app.ts +++ b/src/app.ts @@ -102,8 +102,6 @@ function updateControllerState(gamepad: Gamepad): void { } } // set translate x and y pairs for each stick. Array values come in pairs, first the first 2 then the other 2 and so on - - }); } @@ -172,7 +170,7 @@ function stop(): void { function resetDOM(): void { controllerName.textContent = 'No controller connected'; - controllerDisplay.innerHTML = ''; + controllerDisplay.innerHTML = 'Please connect your bluetooth controller!'; document.querySelector('.svg-container').innerHTML = ''; document.querySelector('.vibrate-button')?.remove(); } @@ -180,4 +178,4 @@ function resetDOM(): void { window.addEventListener('gamepadconnected', start); window.addEventListener('gamepaddisconnected', stop); window.addEventListener('beforeunload', stop); -window.addEventListener('unload', stop); \ No newline at end of file +window.addEventListener('unload', stop); diff --git a/src/index.html b/src/index.html index 8bd1a96..3b95bed 100644 --- a/src/index.html +++ b/src/index.html @@ -9,8 +9,8 @@

Game Controller Tester

-

No controller connected

-
+

No controller detected.

+
Please connect your bluetooth controller!