From 7aec8bd00ee705a9fa76bde9d1fdd8a463cc8758 Mon Sep 17 00:00:00 2001 From: "prompt.ac/@jeffrey" Date: Sat, 10 Oct 2026 17:15:36 -0700 Subject: [PATCH] Xbox pad names as the host spells them --- kidlisp/tools/native-tv-script.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kidlisp/tools/native-tv-script.mjs b/kidlisp/tools/native-tv-script.mjs index 368ff21f8f..84c4474848 100644 --- a/kidlisp/tools/native-tv-script.mjs +++ b/kidlisp/tools/native-tv-script.mjs @@ -163,7 +163,7 @@ function boot() { try { bench(); } catch (_) {} screen(); api.screen.width = W; // The host's pad into the piece's pad: sticks and triggers as numbers, the // down list as 0/1 under the evaluator's names (a b x y lb rb lt rt back // start ls rs up down left right). -const PAD_NAMES = { A: "a", B: "b", X: "x", Y: "y", LeftShoulder: "lb", RightShoulder: "rb", LeftTrigger: "lt", RightTrigger: "rt", View: "back", Menu: "start", LeftThumbstick: "ls", RightThumbstick: "rs", DPadUp: "up", DPadDown: "down", DPadLeft: "left", DPadRight: "right" }; +const PAD_NAMES = { A: "a", B: "b", X: "x", Y: "y", LeftShoulder: "lb", RightShoulder: "rb", LeftTrigger: "lt", RightTrigger: "rt", View: "back", Menu: "start", LeftStick: "ls", RightStick: "rs", ArrowUp: "up", ArrowDown: "down", ArrowLeft: "left", ArrowRight: "right" }; // the Xbox host's names (App.cpp button table) const PAD_BUTTONS = ["a", "b", "x", "y", "lb", "rb", "lt", "rt", "back", "start", "ls", "rs", "up", "down", "left", "right"]; function readPad() { if (!lisp || typeof gamepad !== "function") return; -- 2.51.2