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 23:10:51 -0500
committerItsNotRexed <300290919+ItsNotRexed@users.noreply.github.com>2026-11-22 23:10:51 -0500
commitb7af140cfdf38ddb454a4d6d9b7b3fb11c232d51 (patch)
tree505bae04877c899b096834853248efa43177e3e0 /docs/gameinput.md
parent5f78851c86cd81a0f5082a4688d6704f4b9a06e6 (diff)
parent8a4fb7275686d2ba1ce83a92d8c43badb3c8874b (diff)
Merge pull request #4054 from Maraco91
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> # Conflicts: # docs/README.md
Diffstat (limited to 'docs/gameinput.md')
-rw-r--r--docs/gameinput.md22
1 files changed, 18 insertions, 4 deletions
diff --git a/docs/gameinput.md b/docs/gameinput.md
index 337a93955..826fbf0a1 100644
--- a/docs/gameinput.md
+++ b/docs/gameinput.md
@@ -470,6 +470,15 @@ rests on a transcription rather than on a side-by-side compile.
470 printed, on a pad the shim reports no force-feedback motor for), and prints whether SDL created that effect and is 470 printed, on a pad the shim reports no force-feedback motor for), and prints whether SDL created that effect and is
471 running it, separately from GameInput accepting it, then prints the live reading and the newest raw input report. 471 running it, separately from GameInput accepting it, then prints the live reading and the newest raw input report.
472 472
473On hardware so far, with `gameinput_probe` and SDL 3.4.20 on Windows 11: a DualSense (`054c:0ce6`) over USB. It
474connects as player 1 with trigger effects and gyro (`motors=0xf forcefeedback=0 haptic=2`). Pressed one at a time,
475each of the 14 gamepad buttons set the one bit of the name [Mapping](#mapping) gives it: Cross, Circle, Square and Triangle
476as `A`, `B`, `X` and `Y`, the d-pad, L1/R1, L3/R3, Create as `View` and Options as `Menu`. Both triggers reached
4771.00 and both sticks -1.00 and +1.00 on each axis. At rest the accelerometer read about 0.5 on one axis and the gyro
4780.0; shaking the pad by hand reached 1.00 on the accelerometer. With `--rumble` (the default `rumble` trigger mode)
479and `LEONIDA_DS_LIGHTBAR=00ff00`, the person holding the pad reported the motors, the trigger effects and the lightbar
480as working; nothing measured them, and the `resistance` mode was not tried.
481
473## VERIFY 482## VERIFY
474 483
475These need the game executable or a test on hardware: 484These need the game executable or a test on hardware:
@@ -491,7 +500,8 @@ These need the game executable or a test on hardware:
491- **`UnregisterCallback` timeout** is not honoured; it waits for a callback that is running. 500- **`UnregisterCallback` timeout** is not honoured; it waits for a callback that is running.
492- **Motion normalisation maxima** (2 g accel, 2000 deg/s gyro) are this shim's choice; SDL exposes no sensor range, 501- **Motion normalisation maxima** (2 g accel, 2000 deg/s gyro) are this shim's choice; SDL exposes no sensor range,
493 and whether the game reads motion, and against what scale, is unknown until it runs. The accelerometer range a 502 and whether the game reads motion, and against what scale, is unknown until it runs. The accelerometer range a
494 DualSense exposes can also be wider than 2 g, so hard shakes may clamp at 1.0. 503 DualSense exposes can also be wider than 2 g, so hard shakes may clamp at 1.0: a hand shake of a real DualSense
504 did reach 1.00 on one axis.
495- **Motion members the shim does not provide** (magnetic field, orientation) are zero with 505- **Motion members the shim does not provide** (magnetic field, orientation) are zero with
496 `GameInputMotionAccuracyUnknown`; whether a title wants a synthesised quaternion there is unknown. 506 `GameInputMotionAccuracyUnknown`; whether a title wants a synthesised quaternion there is unknown.
497- **Device family**: every pad is reported as `GameInputFamilyXboxOne`; a title that filters on family sees only 507- **Device family**: every pad is reported as `GameInputFamilyXboxOne`; a title that filters on family sees only
@@ -527,11 +537,15 @@ These need the game executable or a test on hardware:
527- **Haptic waveforms**: the single intensity waveform (usage 0x0F/0x58) is this shim's choice, not the pad's table, so 537- **Haptic waveforms**: the single intensity waveform (usage 0x0F/0x58) is this shim's choice, not the pad's table, so
528 a title that asks for a particular waveform gets intensity-only behaviour. Whether the game uses haptic motors at 538 a title that asks for a particular waveform gets intensity-only behaviour. Whether the game uses haptic motors at
529 all — as opposed to `SetRumbleState` — is unknown. 539 all — as opposed to `SetRumbleState` — is unknown.
530- **Raw HID on a real pad**: only the synthetic tests and the XInput refusal have run. 540- **Raw HID on a real pad**: the synthetic tests, the XInput refusal and one DualSense over USB have run.
531 - What ran: an Xbox Series X controller over Bluetooth on Windows 11 connects and plays normally, with no raw I/O, 541 - What ran: an Xbox Series X controller over Bluetooth on Windows 11 connects and plays normally, with no raw I/O,
532 and the log names the reason. 542 and the log names the reason.
533 - Still to confirm: a DualSense, DualShock 4 or Switch Pro through `gameinput_probe`, which should print the 543 - What ran: a DualSense (`054c:0ce6`) over USB on Windows 11 through `gameinput_probe`. Its descriptor gives 1
534 descriptor's reports and changing raw input bytes. 544 input report (id 1, 63 bytes), 1 output report (id 2, 47 bytes) and 20 feature reports, and the raw input report
545 changed on every reading (2,442 distinct reports in a 40 s capture). No output or feature report was sent
546 through the raw calls.
547 - Still to confirm: a DualSense over Bluetooth, a DualShock 4 or a Switch Pro through `gameinput_probe`, which
548 should print the descriptor's reports and changing raw input bytes.
535 - Size convention: report sizes exclude the id byte, and `GetRawData` returns the payload without it. What 549 - Size convention: report sizes exclude the id byte, and `GetRawData` returns the payload without it. What
536 Microsoft's runtime does for a device with report ids is not documented on the reference pages. 550 Microsoft's runtime does for a device with report ids is not documented on the reference pages.
537 - Readings: a pad that streams reports makes a reading for each changed one, like the runtime's 551 - Readings: a pad that streams reports makes a reading for each changed one, like the runtime's