diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 15:11:36 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-22 15:11:36 -0500 |
| commit | d14598da498bf8fea9fba33f6e9f0c5308f5b8a3 (patch) | |
| tree | eebeb84868eecb6cc53eabeedf26d36870313245 /docs/gameinput.md | |
| parent | 5a7507d508bdf03dd8cefec95809927919e23340 (diff) | |
| parent | bd05e6ac7be4ac8ed0197fca7f3aa5152d42a87c (diff) | |
Merge pull request #2751 from justr4mzi
Diffstat (limited to 'docs/gameinput.md')
| -rw-r--r-- | docs/gameinput.md | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/docs/gameinput.md b/docs/gameinput.md index 47efa8373..664136518 100644 --- a/docs/gameinput.md +++ b/docs/gameinput.md | |||
| @@ -272,13 +272,22 @@ The API surface: | |||
| 272 | 272 | ||
| 273 | | interface | implemented | not implemented | | 273 | | interface | implemented | not implemented | |
| 274 | |---|---|---| | 274 | |---|---|---| |
| 275 | | `IGameInput` | `GetCurrentTimestamp` (µs), `GetCurrentReading`, `GetNextReading`, `GetPreviousReading`, `RegisterReadingCallback`, `RegisterDeviceCallback` (blocking and async enumeration), `RegisterGuideButtonCallback`, `RegisterKeyboardLayoutCallback` (never fires), `StopCallback`, `UnregisterCallback`, `CreateDispatcher`, `FindDeviceFromId`, `EnableOemDeviceSupport` (no-op), `SetFocusPolicy` (no-op) | `GetTemporalReading` (`E_NOTIMPL`, as in GameInput v0 itself; see below), `CreateAggregateDevice`, `FindDeviceFromObject/PlatformHandle/PlatformString` | | 275 | | `IGameInput` | `GetCurrentTimestamp` (µs), `GetCurrentReading`, `GetNextReading`, `GetPreviousReading`, `RegisterReadingCallback`, `RegisterDeviceCallback` (blocking and async enumeration), `RegisterGuideButtonCallback`, `RegisterKeyboardLayoutCallback` (never fires), `StopCallback`, `UnregisterCallback`, `CreateDispatcher`, `FindDeviceFromId`, `EnableOemDeviceSupport` (no-op), `SetFocusPolicy` (no-op), `CreateAggregateDevice` (one kind per call; see below) | `GetTemporalReading` (`E_NOTIMPL`, as in GameInput v0 itself; see below), `FindDeviceFromObject/PlatformHandle/PlatformString`, reading and device callbacks filtered on an aggregate device (`E_NOTIMPL`) | |
| 276 | | `IGameInputReading` | kind, sequence number, timestamp, device, gamepad state, UI navigation state, controller axes and buttons, motion state | raw report, keyboard, mouse, touch, arcade/flight stick, racing wheel (all return nothing) | | 276 | | `IGameInputReading` | kind, sequence number, timestamp, device, gamepad state, UI navigation state, controller axes and buttons, motion state | raw report, keyboard, mouse, touch, arcade/flight stick, racing wheel (all return nothing) | |
| 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 | | `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) | |
| 278 | | `IGameInputDispatcher` | `Dispatch`, `OpenWaitHandle` | the quota (the queue is short) | | 278 | | `IGameInputDispatcher` | `Dispatch`, `OpenWaitHandle` | the quota (the queue is short) | |
| 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 | | `IGameInputDevice` | device info, status, battery, `SetRumbleState` | force feedback and haptic motors (none reported), raw device I/O, power off, input synchronization (no-ops) | |
| 280 | | `IGameInputDispatcher` | `Dispatch` (with its quota), `OpenWaitHandle` | — | | 280 | | `IGameInputDispatcher` | `Dispatch` (with its quota), `OpenWaitHandle` | — | |
| 281 | 281 | ||
| 282 | `CreateAggregateDevice` takes exactly one of the keyboard, mouse, gamepad, arcade stick, flight stick or racing wheel | ||
| 283 | kinds (none, several, or another kind is `E_INVALIDARG`) and returns one device per kind, the same object on every | ||
| 284 | call: family `GameInputFamilyAggregate`, always connected, with that kind as its `supportedInput`, and a fixed | ||
| 285 | `deviceId` per kind that `FindDeviceFromId` also answers. Readings asked | ||
| 286 | through it (`GetCurrentReading`, `GetNextReading`, `GetPreviousReading`) come from every connected device of that | ||
| 287 | kind (`GetCurrentReading` answers the most recent of them); asking it for another kind is | ||
| 288 | `GAMEINPUT_E_READING_NOT_FOUND`. A reading or device callback registered with an aggregate device as its filter is | ||
| 289 | refused with `E_NOTIMPL` and an invalid token. | ||
| 290 | |||
| 282 | A device object stays alive for the whole process. When a pad is unplugged its status drops to | 291 | A device object stays alive for the whole process. When a pad is unplugged its status drops to |
| 283 | `GameInputDeviceNoStatus` and its device callback runs; when the same pad is plugged in again (matched by SDL GUID and | 292 | `GameInputDeviceNoStatus` and its device callback runs; when the same pad is plugged in again (matched by SDL GUID and |
| 284 | serial or device path) the title gets the same object back, connected again. | 293 | serial or device path) the title gets the same object back, connected again. |