upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/docs/gameinput.md
diff options
context:
space:
mode:
authorJan Trencansky <jan.trencansky@protonmail.com>2026-11-26 13:13:43 -0500
committerJan Trencansky <jan.trencansky@protonmail.com>2026-11-26 13:13:43 -0500
commit95d18113f37cfd42f8d8264fc3223efd7f2d60cb (patch)
treee72bae2b6ad4c2b446e9c07646e9b6c5ef93923f /docs/gameinput.md
parent8a600e14ebb7e4b1df31fb004c1c137b5797566b (diff)
parentee470192461a2911aa204cfecf9fdccb265a8b5f (diff)
Merge #2372 (ZroIsHere): advance scripted input and improve boot diagnostics
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'docs/gameinput.md')
-rw-r--r--docs/gameinput.md5
1 files changed, 3 insertions, 2 deletions
diff --git a/docs/gameinput.md b/docs/gameinput.md
index c18d96a05..2a613b1ba 100644
--- a/docs/gameinput.md
+++ b/docs/gameinput.md
@@ -55,8 +55,9 @@ scripted pad, driven by the script alone:
55 shim, or through `IGameInputDispatcher::Dispatch` once the title made a dispatcher) and found by `FindDeviceFromId`. 55 shim, or through `IGameInputDispatcher::Dispatch` once the title made a dispatcher) and found by `FindDeviceFromId`.
56 It is already connected, so a callback registered without enumeration hears nothing. 56 It is already connected, so a callback registered without enumeration hears nothing.
57- **The readings:** `GetCurrentReading`, `GetNextReading` and `GetPreviousReading`, with gamepad, UI navigation, 57- **The readings:** `GetCurrentReading`, `GetNextReading` and `GetPreviousReading`, with gamepad, UI navigation,
58 controller axis and controller button state. A reading is taken when the title asks for one and the script's state 58 controller axis and controller button state. A clock thread advances the script every 8 ms and stores each state
59 has changed since the last, so no thread polls; the history keeps the last 64 readings. 59 change so `GetNextReading` can observe edges while the title waits between reads; the history keeps the last 64
60 readings.
60- **The timeline:** the same as with SDL3 (`runtime/shims/gameinput_script.h` holds the parser, the timeline and the 61- **The timeline:** the same as with SDL3 (`runtime/shims/gameinput_script.h` holds the parser, the timeline and the
61 log lines for both): seconds from the first `GameInputCreate`, each press held 300 ms (or its own `:hold`, see 62 log lines for both): seconds from the first `GameInputCreate`, each press held 300 ms (or its own `:hold`, see
62 `LEONIDA_INPUT_SCRIPT` below), then released. 63 `LEONIDA_INPUT_SCRIPT` below), then released.