diff options
| author | Maraco91 <43787609+Maraco91@users.noreply.github.com> | 2026-11-23 00:10:11 +0100 |
|---|---|---|
| committer | Maraco91 <43787609+Maraco91@users.noreply.github.com> | 2026-11-23 00:10:11 +0100 |
| commit | f44e36c2a912f3d7cebeba51c0283252ee04cf70 (patch) | |
| tree | 9a8716296dfec47ce3388cb4586e2bd6968747c3 /docs/gameinput.md | |
| parent | aa2988cc555bad7ecd508b48a702adbb32fe7c95 (diff) | |
docs/gameinput.md: the shim on a real DualSense over USB
gameinput_probe with a DualSense (054c:0ce6) over USB on Windows 11: it
connects with trigger effects and gyro, each of the 14 gamepad buttons
sets its own bit of the mapping table, triggers and sticks reach full
scale, the accelerometer clamps at 1.00 on a hand shake, and the raw HID
tables and a changing raw input report are there. Rumble, trigger effects
and the lightbar are as reported by the person holding the pad.
Bluetooth, the resistance trigger mode, a DualShock 4 and a Switch Pro
are still to confirm.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Diffstat (limited to 'docs/gameinput.md')
| -rw-r--r-- | docs/gameinput.md | 22 |
1 files changed, 18 insertions, 4 deletions
diff --git a/docs/gameinput.md b/docs/gameinput.md index fa216a2ee..934902584 100644 --- a/docs/gameinput.md +++ b/docs/gameinput.md | |||
| @@ -420,6 +420,15 @@ rests on a transcription rather than on a side-by-side compile. | |||
| 420 | report tables (or why it has none), plays each motor and trigger for a second with `--rumble`, then prints the live | 420 | report tables (or why it has none), plays each motor and trigger for a second with `--rumble`, then prints the live |
| 421 | reading and the newest raw input report. | 421 | reading and the newest raw input report. |
| 422 | 422 | ||
| 423 | On hardware so far, with `gameinput_probe` and SDL 3.4.20 on Windows 11: a DualSense (`054c:0ce6`) over USB. It | ||
| 424 | connects as player 1 with trigger effects and gyro (`motors=0xf forcefeedback=0 haptic=2`). Pressed one at a time, | ||
| 425 | each of the 14 gamepad buttons set its own bit of the table in [Mapping](#mapping): Cross, Circle, Square and Triangle | ||
| 426 | as `A`, `B`, `X` and `Y`, the d-pad, L1/R1, L3/R3, Create as `View` and Options as `Menu`. Both triggers reached | ||
| 427 | 1.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 | ||
| 428 | 0.0; shaking the pad by hand reached 1.00 on the accelerometer. With `--rumble` (the default `rumble` trigger mode) | ||
| 429 | and `LEONIDA_DS_LIGHTBAR=00ff00`, the person holding the pad reported the motors, the trigger effects and the lightbar | ||
| 430 | as working; nothing measured them, and the `resistance` mode was not tried. | ||
| 431 | |||
| 423 | ## VERIFY | 432 | ## VERIFY |
| 424 | 433 | ||
| 425 | These need the game executable or a test on hardware: | 434 | These need the game executable or a test on hardware: |
| @@ -441,7 +450,8 @@ These need the game executable or a test on hardware: | |||
| 441 | - **`UnregisterCallback` timeout** is not honoured; it waits for a callback that is running. | 450 | - **`UnregisterCallback` timeout** is not honoured; it waits for a callback that is running. |
| 442 | - **Motion normalisation maxima** (2 g accel, 2000 deg/s gyro) are this shim's choice; SDL exposes no sensor range, | 451 | - **Motion normalisation maxima** (2 g accel, 2000 deg/s gyro) are this shim's choice; SDL exposes no sensor range, |
| 443 | and whether the game reads motion, and against what scale, is unknown until it runs. The accelerometer range a | 452 | and whether the game reads motion, and against what scale, is unknown until it runs. The accelerometer range a |
| 444 | DualSense exposes can also be wider than 2 g, so hard shakes may clamp at 1.0. | 453 | DualSense exposes can also be wider than 2 g, so hard shakes may clamp at 1.0: a hand shake of a real DualSense |
| 454 | did reach 1.00 on one axis. | ||
| 445 | - **Motion members the shim does not provide** (magnetic field, orientation) are zero with | 455 | - **Motion members the shim does not provide** (magnetic field, orientation) are zero with |
| 446 | `GameInputMotionAccuracyUnknown`; whether a title wants a synthesised quaternion there is unknown. | 456 | `GameInputMotionAccuracyUnknown`; whether a title wants a synthesised quaternion there is unknown. |
| 447 | - **Device family**: every pad is reported as `GameInputFamilyXboxOne`; a title that filters on family sees only | 457 | - **Device family**: every pad is reported as `GameInputFamilyXboxOne`; a title that filters on family sees only |
| @@ -474,11 +484,15 @@ These need the game executable or a test on hardware: | |||
| 474 | - **Haptic waveforms**: the single intensity waveform (usage 0x0F/0x58) is this shim's choice, not the pad's table, so | 484 | - **Haptic waveforms**: the single intensity waveform (usage 0x0F/0x58) is this shim's choice, not the pad's table, so |
| 475 | a title that asks for a particular waveform gets intensity-only behaviour. Whether the game uses haptic motors at | 485 | a title that asks for a particular waveform gets intensity-only behaviour. Whether the game uses haptic motors at |
| 476 | all — as opposed to `SetRumbleState` — is unknown. | 486 | all — as opposed to `SetRumbleState` — is unknown. |
| 477 | - **Raw HID on a real pad**: only the synthetic tests and the XInput refusal have run. | 487 | - **Raw HID on a real pad**: the synthetic tests, the XInput refusal and one DualSense over USB have run. |
| 478 | - What ran: an Xbox Series X controller over Bluetooth on Windows 11 connects and plays normally, with no raw I/O, | 488 | - What ran: an Xbox Series X controller over Bluetooth on Windows 11 connects and plays normally, with no raw I/O, |
| 479 | and the log names the reason. | 489 | and the log names the reason. |
| 480 | - Still to confirm: a DualSense, DualShock 4 or Switch Pro through `gameinput_probe`, which should print the | 490 | - What ran: a DualSense (`054c:0ce6`) over USB on Windows 11 through `gameinput_probe`. Its descriptor gives 1 |
| 481 | descriptor's reports and changing raw input bytes. | 491 | input report (id 1, 63 bytes), 1 output report (id 2, 47 bytes) and 20 feature reports, and the raw input report |
| 492 | changed on every reading (2,442 distinct reports in a 40 s capture). No output or feature report was sent | ||
| 493 | through the raw calls. | ||
| 494 | - Still to confirm: a DualSense over Bluetooth, a DualShock 4 or a Switch Pro through `gameinput_probe`, which | ||
| 495 | should print the descriptor's reports and changing raw input bytes. | ||
| 482 | - Size convention: report sizes exclude the id byte, and `GetRawData` returns the payload without it. What | 496 | - Size convention: report sizes exclude the id byte, and `GetRawData` returns the payload without it. What |
| 483 | Microsoft's runtime does for a device with report ids is not documented on the reference pages. | 497 | Microsoft's runtime does for a device with report ids is not documented on the reference pages. |
| 484 | - Readings: a pad that streams reports makes a reading for each changed one, like the runtime's | 498 | - Readings: a pad that streams reports makes a reading for each changed one, like the runtime's |