diff options
| author | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-23 17:24:53 -0500 |
|---|---|---|
| committer | ItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com> | 2026-11-23 17:24:53 -0500 |
| commit | 2f6aa6fb5b0909e76abb8e3ca78a23dbe3804128 (patch) | |
| tree | 7fb1cfdfdd0bf7ab52b0eb6f0826e2a40658a73c /docs/gameinput.md | |
| parent | 8b878766bc5eb0c31edcaa438cbfacad502cf31e (diff) | |
| parent | 29bd7a11a68574e1aa79908805ee6f56a8ae8e76 (diff) | |
Merge remote-tracking branch 'origin/pr/9765'
Diffstat (limited to 'docs/gameinput.md')
| -rw-r--r-- | docs/gameinput.md | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/docs/gameinput.md b/docs/gameinput.md index 391650082..a9fee120b 100644 --- a/docs/gameinput.md +++ b/docs/gameinput.md | |||
| @@ -426,7 +426,15 @@ the enums the shim uses and the structs it has to lay out. It was written agains | |||
| 426 | GDK version, also published as the `Microsoft.GameInput` NuGet package 0.2303.22621.3038). The header is not in the | 426 | GDK version, also published as the `Microsoft.GameInput` NuGet package 0.2303.22621.3038). The header is not in the |
| 427 | repository. Its struct offsets were checked by compiling both side by side with `offsetof` asserts for every field the | 427 | repository. Its struct offsets were checked by compiling both side by side with `offsetof` asserts for every field the |
| 428 | shim fills (`GameInputDeviceInfo` 320 bytes with `deviceFamily` at 96 and the info pointers from 160, | 428 | shim fills (`GameInputDeviceInfo` 320 bytes with `deviceFamily` at 96 and the info pointers from 160, |
| 429 | `GameInputGamepadState` 28 bytes, `GameInputControllerAxisInfo` 48, and the rest in `gameinput_abi.h`). | 429 | `GameInputGamepadState` 28 bytes, and the rest in `gameinput_abi.h`). Four structs had only their size compared, or |
| 430 | were taken as empty, and were wrong: `GameInputControllerAxisInfo` (48 bytes) and `GameInputControllerButtonInfo` (32) | ||
| 431 | have a `GameInputLabel` at offset 4, in what would otherwise be padding, so the members behind it sat four bytes early, | ||
| 432 | and `GameInputGamepadInfo` and `GameInputUiNavigationInfo` are tables of 14 and 21 labels (56 and 84 bytes). Every | ||
| 433 | member of the four now compares equal side by side, and `gameinput_abi.h` pins each offset. The host's GameInput 0.2309 | ||
| 434 | fills the two tables in that order: a DualSense (`054c:0ce6`) over USB has the cross, circle, square and triangle icons | ||
| 435 | for A, B, X and Y, `Menu`, `View`, `Up`/`Down`/`Left`/`Right`, `L1`/`R1` and `L3`/`R3`, and null axis and button arrays. | ||
| 436 | The shim gives every control the Xbox label of its position on every pad, because every pad is presented as an Xbox | ||
| 437 | One pad; an Xbox pad's labels on the host are not measured. | ||
| 430 | 438 | ||
| 431 | The force-feedback and haptic declarations (`GameInputForceFeedbackMotorInfo`, `GameInputHapticWaveformInfo`, | 439 | The force-feedback and haptic declarations (`GameInputForceFeedbackMotorInfo`, `GameInputHapticWaveformInfo`, |
| 432 | `GameInputHapticFeedbackMotorInfo`, the envelope and parameter structs, `IGameInputForceFeedbackEffect`) were | 440 | `GameInputHapticFeedbackMotorInfo`, the envelope and parameter structs, `IGameInputForceFeedbackEffect`) were |