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-23 17:24:53 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-23 17:24:53 -0500
commit2f6aa6fb5b0909e76abb8e3ca78a23dbe3804128 (patch)
tree7fb1cfdfdd0bf7ab52b0eb6f0826e2a40658a73c /docs/gameinput.md
parent8b878766bc5eb0c31edcaa438cbfacad502cf31e (diff)
parent29bd7a11a68574e1aa79908805ee6f56a8ae8e76 (diff)
Merge remote-tracking branch 'origin/pr/9765'
Diffstat (limited to 'docs/gameinput.md')
-rw-r--r--docs/gameinput.md10
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
426GDK version, also published as the `Microsoft.GameInput` NuGet package 0.2303.22621.3038). The header is not in the 426GDK version, also published as the `Microsoft.GameInput` NuGet package 0.2303.22621.3038). The header is not in the
427repository. Its struct offsets were checked by compiling both side by side with `offsetof` asserts for every field the 427repository. Its struct offsets were checked by compiling both side by side with `offsetof` asserts for every field the
428shim fills (`GameInputDeviceInfo` 320 bytes with `deviceFamily` at 96 and the info pointers from 160, 428shim 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
430were taken as empty, and were wrong: `GameInputControllerAxisInfo` (48 bytes) and `GameInputControllerButtonInfo` (32)
431have a `GameInputLabel` at offset 4, in what would otherwise be padding, so the members behind it sat four bytes early,
432and `GameInputGamepadInfo` and `GameInputUiNavigationInfo` are tables of 14 and 21 labels (56 and 84 bytes). Every
433member of the four now compares equal side by side, and `gameinput_abi.h` pins each offset. The host's GameInput 0.2309
434fills the two tables in that order: a DualSense (`054c:0ce6`) over USB has the cross, circle, square and triangle icons
435for A, B, X and Y, `Menu`, `View`, `Up`/`Down`/`Left`/`Right`, `L1`/`R1` and `L3`/`R3`, and null axis and button arrays.
436The shim gives every control the Xbox label of its position on every pad, because every pad is presented as an Xbox
437One pad; an Xbox pad's labels on the host are not measured.
430 438
431The force-feedback and haptic declarations (`GameInputForceFeedbackMotorInfo`, `GameInputHapticWaveformInfo`, 439The 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