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 11:43:15 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 11:43:15 -0500
commit873a952a37f50abcd6f4cdb1dfec50b50041732f (patch)
treeb4bd0fb2c07f865a8bbe63f8d36764973ca47e48 /docs/gameinput.md
parent2e0c95ff2621d9f1770f4c6ed134fee7cc1b05a8 (diff)
parentb9a3cbcfc006c8fb957f7dc7cbe8cb450adabb51 (diff)
Merge pull request #2239 from itsRevela
Diffstat (limited to 'docs/gameinput.md')
-rw-r--r--docs/gameinput.md10
1 files changed, 7 insertions, 3 deletions
diff --git a/docs/gameinput.md b/docs/gameinput.md
index 6a98ed5a0..ab5fa2feb 100644
--- a/docs/gameinput.md
+++ b/docs/gameinput.md
@@ -200,7 +200,7 @@ The API surface:
200 200
201| interface | implemented | not implemented | 201| interface | implemented | not implemented |
202|---|---|---| 202|---|---|---|
203| `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`, `CreateAggregateDevice`, `FindDeviceFromObject/PlatformHandle/PlatformString` | 203| `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` |
204| `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) | 204| `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) |
205| `IGameInputDevice` | device info, status, battery, `SetRumbleState` | force feedback and haptic motors (none reported), raw device I/O, power off, input synchronization (no-ops) | 205| `IGameInputDevice` | device info, status, battery, `SetRumbleState` | force feedback and haptic motors (none reported), raw device I/O, power off, input synchronization (no-ops) |
206| `IGameInputDispatcher` | `Dispatch`, `OpenWaitHandle` | the quota (the queue is short) | 206| `IGameInputDispatcher` | `Dispatch`, `OpenWaitHandle` | the quota (the queue is short) |
@@ -292,8 +292,12 @@ These need the game executable or a test on hardware:
292 built against one of those, the vtables need a second set. 292 built against one of those, the vtables need a second set.
293- **IIDs.** `QueryInterface` answers the v0 IIDs from the public header. 293- **IIDs.** `QueryInterface` answers the v0 IIDs from the public header.
294- **Reading history.** Microsoft's [next reading](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/input/gameinput/interfaces/igameinput/methods/igameinput_getnextreading) 294- **Reading history.** Microsoft's [next reading](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/input/gameinput/interfaces/igameinput/methods/igameinput_getnextreading)
295 and [previous reading](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/input/gameinput/interfaces/igameinput/methods/igameinput_getpreviousreading) pages describe half a second of readings per device and failure when old readings leave the stream. The table above records the shim's HRESULT choices. Changes faster than the poll are not seen, and 295 and [previous reading](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/input/gameinput/interfaces/igameinput/methods/igameinput_getpreviousreading) pages describe half a second of readings per device and failure when old readings leave the stream. The table above records the shim's HRESULT choices. Changes faster than the poll are not seen.
296 `GetTemporalReading` is not implemented. 296 `GetTemporalReading` returns `E_NOTIMPL` with a null reading on purpose: Microsoft's
297 [reference page](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/input/gameinput/deprecated/interfaces/igameinput/methods/igameinput_gettemporalreading)
298 says it "was never implemented in v0" and returns `E_NOTIMPL`, and v1 removed it. The v0 header (NuGet
299 `Microsoft.GameInput` 0.2303.22621.3038) declares it as `(timestamp, device, reading)`, the layout the shim has;
300 the page's five-parameter form does not match that header.
297- **UI navigation mapping** and the **controller-axis convention** (0..1 with sticks at 0.5) are this shim's choice, 301- **UI navigation mapping** and the **controller-axis convention** (0..1 with sticks at 0.5) are this shim's choice,
298 not measured from a console. 302 not measured from a console.
299- **Battery capacity** is reported as a fraction (remaining 0..1 of full 1), not in device units. 303- **Battery capacity** is reported as a fraction (remaining 0..1 of full 1), not in device units.