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:
authorItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 15:11:09 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 15:11:09 -0500
commitcda0da18b8a3bd7882ff18e54c077018e2531ad7 (patch)
treec584d489b111a1268fd3cc6cfc2e8cb16c7e6789 /docs/gameinput.md
parent796486fb47497fabacbf9416d78360a12b4970de (diff)
parentf5907ef65ab326d92db9d4035b2899e4fe57b688 (diff)
Merge pull request #2567 from marquezini
Diffstat (limited to 'docs/gameinput.md')
-rw-r--r--docs/gameinput.md7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/gameinput.md b/docs/gameinput.md
index 21421351e..47efa8373 100644
--- a/docs/gameinput.md
+++ b/docs/gameinput.md
@@ -264,8 +264,9 @@ never touch SDL: they read the latest reading or leave a request, so a call cost
264button) run on that thread, as GameInput runs them on its own threads. Once the title creates a dispatcher 264button) run on that thread, as GameInput runs them on its own threads. Once the title creates a dispatcher
265(`IGameInput::CreateDispatcher`), callbacks are queued instead, the dispatcher's wait handle is signalled, and 265(`IGameInput::CreateDispatcher`), callbacks are queued instead, the dispatcher's wait handle is signalled, and
266`IGameInputDispatcher::Dispatch` runs them on the title's thread, oldest first, within its quota: at least one queued 266`IGameInputDispatcher::Dispatch` runs them on the title's thread, oldest first, within its quota: at least one queued
267event per call (a quota of 0 runs exactly one), no further event once the quota has passed, and the wait handle is 267event per call (a quota of 0 runs exactly one), no further event once the quota has passed, and only the events
268signalled again while events remain. 268queued when the call started (later ones wait for the next call, so even an unlimited quota returns). The wait
269handle is signalled again while events remain.
269 270
270The API surface: 271The API surface:
271 272
@@ -276,7 +277,7 @@ The API surface:
276| `IGameInputDevice` | device info, status, battery, `SetRumbleState`, force-feedback motors with `CreateForceFeedbackEffect`/`IGameInputForceFeedbackEffect`, `IsForceFeedbackMotorPoweredOn`, `SetForceFeedbackMotorGain`, haptic trigger motors with `SetHapticMotorState` | raw device I/O, power off, input synchronization (no-ops) | 277| `IGameInputDevice` | device info, status, battery, `SetRumbleState`, force-feedback motors with `CreateForceFeedbackEffect`/`IGameInputForceFeedbackEffect`, `IsForceFeedbackMotorPoweredOn`, `SetForceFeedbackMotorGain`, haptic trigger motors with `SetHapticMotorState` | raw device I/O, power off, input synchronization (no-ops) |
277| `IGameInputDispatcher` | `Dispatch`, `OpenWaitHandle` | the quota (the queue is short) | 278| `IGameInputDispatcher` | `Dispatch`, `OpenWaitHandle` | the quota (the queue is short) |
278| `IGameInputDevice` | device info, status, battery, `SetRumbleState` | force feedback and haptic motors (none reported), raw device I/O, power off, input synchronization (no-ops) | 279| `IGameInputDevice` | device info, status, battery, `SetRumbleState` | force feedback and haptic motors (none reported), raw device I/O, power off, input synchronization (no-ops) |
279| `IGameInputDispatcher` | `Dispatch` (with its quota), `OpenWaitHandle` | | 280| `IGameInputDispatcher` | `Dispatch` (with its quota), `OpenWaitHandle` | — |
280 281
281A device object stays alive for the whole process. When a pad is unplugged its status drops to 282A device object stays alive for the whole process. When a pad is unplugged its status drops to
282`GameInputDeviceNoStatus` and its device callback runs; when the same pad is plugged in again (matched by SDL GUID and 283`GameInputDeviceNoStatus` and its device callback runs; when the same pad is plugged in again (matched by SDL GUID and