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:
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.