diff options
| author | itsRevela <rexmarek@gmail.com> | 2026-11-22 10:26:34 -0600 |
|---|---|---|
| committer | itsRevela <rexmarek@gmail.com> | 2026-11-22 10:26:34 -0600 |
| commit | b9a3cbcfc006c8fb957f7dc7cbe8cb450adabb51 (patch) | |
| tree | 8bc0c8107d4045f32031f9834449bf3ab6856bbf /docs | |
| parent | 4eb6155d3ac4f9d3fadb0d095c4ce13e76783615 (diff) | |
gameinput: GetTemporalReading stays E_NOTIMPL, as in GameInput v0 (RT-147)
Microsoft's reference page says IGameInput::GetTemporalReading "was never
implemented in v0" and returns E_NOTIMPL, and v1 removed it, so the shim's
E_NOTIMPL already matches the API the title was built against. A history
lookup would answer what no GameInput runtime does. The v0 header (NuGet
Microsoft.GameInput 0.2303.22621.3038) declares (timestamp, device,
reading), the shim's layout; the page's five-parameter form doesn't match it.
Pin the behaviour in gameinput_test (E_NOTIMPL with the reading cleared, for
past, present and current timestamps, with and without a device filter;
E_POINTER for a null output) and say so in docs/gameinput.md instead of
listing the method as a gap.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/gameinput.md | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/docs/gameinput.md b/docs/gameinput.md index f848ab0d2..49e1331cc 100644 --- a/docs/gameinput.md +++ b/docs/gameinput.md | |||
| @@ -187,7 +187,7 @@ The API surface: | |||
| 187 | 187 | ||
| 188 | | interface | implemented | not implemented | | 188 | | interface | implemented | not implemented | |
| 189 | |---|---|---| | 189 | |---|---|---| |
| 190 | | `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` | | 190 | | `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` | |
| 191 | | `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) | | 191 | | `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) | |
| 192 | | `IGameInputDevice` | device info, status, battery, `SetRumbleState` | force feedback and haptic motors (none reported), raw device I/O, power off, input synchronization (no-ops) | | 192 | | `IGameInputDevice` | device info, status, battery, `SetRumbleState` | force feedback and haptic motors (none reported), raw device I/O, power off, input synchronization (no-ops) | |
| 193 | | `IGameInputDispatcher` | `Dispatch`, `OpenWaitHandle` | the quota (the queue is short) | | 193 | | `IGameInputDispatcher` | `Dispatch`, `OpenWaitHandle` | the quota (the queue is short) | |
| @@ -279,8 +279,12 @@ These need the game executable or a test on hardware: | |||
| 279 | built against one of those, the vtables need a second set. | 279 | built against one of those, the vtables need a second set. |
| 280 | - **IIDs.** `QueryInterface` answers the v0 IIDs from the public header. | 280 | - **IIDs.** `QueryInterface` answers the v0 IIDs from the public header. |
| 281 | - **Reading history.** Microsoft's [next reading](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/input/gameinput/interfaces/igameinput/methods/igameinput_getnextreading) | 281 | - **Reading history.** Microsoft's [next reading](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/input/gameinput/interfaces/igameinput/methods/igameinput_getnextreading) |
| 282 | 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 | 282 | 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. |
| 283 | `GetTemporalReading` is not implemented. | 283 | `GetTemporalReading` returns `E_NOTIMPL` with a null reading on purpose: Microsoft's |
| 284 | [reference page](https://learn.microsoft.com/en-us/gaming/gdk/docs/reference/input/gameinput/deprecated/interfaces/igameinput/methods/igameinput_gettemporalreading) | ||
| 285 | says it "was never implemented in v0" and returns `E_NOTIMPL`, and v1 removed it. The v0 header (NuGet | ||
| 286 | `Microsoft.GameInput` 0.2303.22621.3038) declares it as `(timestamp, device, reading)`, the layout the shim has; | ||
| 287 | the page's five-parameter form does not match that header. | ||
| 284 | - **UI navigation mapping** and the **controller-axis convention** (0..1 with sticks at 0.5) are this shim's choice, | 288 | - **UI navigation mapping** and the **controller-axis convention** (0..1 with sticks at 0.5) are this shim's choice, |
| 285 | not measured from a console. | 289 | not measured from a console. |
| 286 | - **Battery capacity** is reported as a fraction (remaining 0..1 of full 1), not in device units. | 290 | - **Battery capacity** is reported as a fraction (remaining 0..1 of full 1), not in device units. |