diff --git a/components/hud/TouchControlBar.tsx b/components/hud/TouchControlBar.tsx index a0d97f1..0b10a45 100644 --- a/components/hud/TouchControlBar.tsx +++ b/components/hud/TouchControlBar.tsx @@ -25,13 +25,62 @@ function isTouchDevice(): boolean { return typeof window !== "undefined" && ("ontouchstart" in window || navigator.maxTouchPoints > 0); } +function FlipperLeftIcon() { + return ( + + ); +} + +function FlipperRightIcon() { + return ( + + ); +} + +/** Eject-style glyph (triangle over a bar) for the plunger/launch control. */ +function PlungerIcon() { + return ( + + ); +} + +function CoinIcon() { + return ( + + ); +} + +function PlayIcon() { + return ( + + ); +} + function ControlButton({ binding, label, + icon, size, }: { binding: KeyBinding; label: string; + icon: React.ReactNode; size: "lg" | "md" | "sm"; }) { const [pressed, setPressed] = useState(false); @@ -50,28 +99,23 @@ function ControlButton({ dispatchKey("keyup", binding); }, [binding]); - const sizeClasses = - size === "lg" - ? "h-20 w-20 text-3xl" - : size === "md" - ? "h-14 w-14 text-lg" - : "h-12 w-14 font-mono text-[11px] tracking-widest"; + const sizeClasses = size === "lg" ? "h-20 w-20" : size === "md" ? "h-14 w-14" : "h-12 w-12"; return ( ); } @@ -97,17 +141,19 @@ export default function TouchControlBar({ active }: TouchControlBarProps) { return (