Commit Graph

2 Commits

Author SHA1 Message Date
tfrere 0110fa1f33 feat: latch touch mode on first real touch, add ?touch=1 test hook
(pointer: coarse) misses DevTools device modes and hybrid laptops, so any
real touchstart now arms the thumbs permanently (title page hands the
proof to controls/touch.js via __microduckTouched). ?touch=1 forces the
overlay on any device for desktop testing.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-21 15:55:53 +02:00
tfrere 55c1238fd0 feat: floating-stick mobile controls, always-on ball, lighter ball scan
- controls/touch.js: touch input source - floating analog stick (lower-left
  zone, base anchors under the finger), A = alternate kick, B = quack with
  held-beak jaw; shown on coarse-pointer devices only
- touch mode strips the HUD to Back + thumbs (no quickbar/mode/telemetry)
  and the title menu shows a stick/A/B tutorial variant (gamepad still wins)
- a ball is always in play: auto-spawned when the entrance or any respawn
  ceremony unlocks input; B now re-pops a fresh one
- ball scan FX reads a coarse geodesic stand-in (fxWireGeometry override)
  instead of the dense render sphere, and plays a touch slower

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-21 15:39:22 +02:00