From ce010c1270648fec5d57059ff48b86f485e15ea9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Tue, 20 Feb 2024 17:07:58 +0100 Subject: [PATCH] aaa --- src/index.css | 12 +++ src/routes/camera/+page.svelte | 4 +- src/routes/gamepad/+page.svelte | 163 ++++++++++++++++++++++++++++++++ 3 files changed, 178 insertions(+), 1 deletion(-) diff --git a/src/index.css b/src/index.css index c6eef53..9a82237 100644 --- a/src/index.css +++ b/src/index.css @@ -38,4 +38,16 @@ button, .button { background: black; color: white; +} + +select { + background: black; + color: white; + padding: 0.25em 0.5em; + border-radius: 0.25em; + border: 1px solid white; + + &:disabled { + opacity: 0.7; + } } \ No newline at end of file diff --git a/src/routes/camera/+page.svelte b/src/routes/camera/+page.svelte index 346f865..1b6c9c7 100644 --- a/src/routes/camera/+page.svelte +++ b/src/routes/camera/+page.svelte @@ -83,9 +83,11 @@
diff --git a/src/routes/gamepad/+page.svelte b/src/routes/gamepad/+page.svelte index e69de29..67d73ed 100644 --- a/src/routes/gamepad/+page.svelte +++ b/src/routes/gamepad/+page.svelte @@ -0,0 +1,163 @@ + + +

Gamepad & Joystick Tests

+
+ + +
+ +{#if currentGamepad} +
+

Buttons

+
    + {#each buttons as button, i} +
  • {i}
  • + {/each} +
+
+
+

Axes

+
+ {#each axes as axis, i (i)} +
+
+ {i} + + {axis.toFixed(2)} +
+
+ {/each} +
+
+{/if} + +