🎨 Format and simplify controls

This commit is contained in:
Rune Harlyk
2026-01-02 22:35:04 +01:00
committed by nikguin04
parent a6b5b0881a
commit 0ef55bcc7e
25 changed files with 6424 additions and 5981 deletions
@@ -15,7 +15,6 @@
import { gamepadAxes, gamepadButtonsEdges, hasGamepad } from '$lib/stores/gamepad'
import { notifications } from '$lib/components/toasts/notifications'
import {
HumanInputData,
ModeData,
ModesEnum,
WalkGaitData,
@@ -25,14 +24,6 @@
let left: nipplejs.JoystickManager
let right: nipplejs.JoystickManager
let data: HumanInputData = HumanInputData.create({
left: { x: 0, y: 0 },
right: { x: 0, y: 0 },
height: 0,
s1: 0,
speed: 0
})
$effect(() => {
if ($hasGamepad) {
notifications.success('🎮 Gamepad connected', 3000)