diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 15:11:09 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 15:11:09 -0500 |
| commit | cda0da18b8a3bd7882ff18e54c077018e2531ad7 (patch) | |
| tree | c584d489b111a1268fd3cc6cfc2e8cb16c7e6789 /docs/gameinput.md | |
| parent | 796486fb47497fabacbf9416d78360a12b4970de (diff) | |
| parent | f5907ef65ab326d92db9d4035b2899e4fe57b688 (diff) | |
Merge pull request #2567 from marquezini
Diffstat (limited to 'docs/gameinput.md')
| -rw-r--r-- | docs/gameinput.md | 7 |
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 | |||
| 264 | button) run on that thread, as GameInput runs them on its own threads. Once the title creates a dispatcher | 264 | button) 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 |
| 267 | event per call (a quota of 0 runs exactly one), no further event once the quota has passed, and the wait handle is | 267 | event per call (a quota of 0 runs exactly one), no further event once the quota has passed, and only the events |
| 268 | signalled again while events remain. | 268 | queued when the call started (later ones wait for the next call, so even an unlimited quota returns). The wait |
| 269 | handle is signalled again while events remain. | ||
| 269 | 270 | ||
| 270 | The API surface: | 271 | The 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 | ||
| 281 | A device object stays alive for the whole process. When a pad is unplugged its status drops to | 282 | A 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 |