diff options
| author | ZroFreaks <42916282+ZroIsHere@users.noreply.github.com> | 2026-11-26 17:17:16 +0100 |
|---|---|---|
| committer | ZroFreaks <42916282+ZroIsHere@users.noreply.github.com> | 2026-11-26 17:17:16 +0100 |
| commit | 4e93ea9ef3fd48431bee7d17705f62a69023ab57 (patch) | |
| tree | 2575d35000f48135de1bd8fb24fa704adce3cc13 /docs/gameinput.md | |
| parent | 56bdd7e889f6e05ca498eb79e35fa22578fe4696 (diff) | |
gameinput: advance scripted input clock without SDL3
Diffstat (limited to 'docs/gameinput.md')
| -rw-r--r-- | docs/gameinput.md | 5 |
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. |