Add DualShock 3 / SIXAXIS support (diagnostics) - #272
Open
mathiasm74 wants to merge 2 commits into
Open
mathiasm74 wants to merge 2 commits into
mathiasm74 wants to merge 2 commits into
Conversation
The DS3 enumerates as HID but stays silent until set operational: on connect the app reads feature report 0xF2 and prompts the user to press the PS button, after which input reports flow (see the earlier Debug-tab probe for how this was found). No WebUSB or native app needed. - New DS3Controller: USB input mapping (buttons, dpad via parseDeviceSpecificInputs since it is discrete bits not a hat, sticks, L2/R2 analog), identity from the Bluetooth MAC read from 0xF2, paired-console MAC from 0xF5, USB battery status. Byte offsets are provisional (documented layout) pending the raw inspector. - Factory: register 0x054c:0x0268 in filters, instance, name and a diagnose-only UI config. - Connect flow: exempt the DS3 from the 63-byte USB gate, run the 0xF2 handshake with a "press PS" prompt, and hide range calibration, save and reboot (new showRangeCalib/showSaveReboot UI flags) since the DS3 has no calibration path yet. - The DS3 reuses the DualShock 4 SVG artwork; presses light the body, triggers show the analog gradient, sticks drive the dials. DS3 stick-center calibration over feature report 0xF1 exists but can brick a controller, so it is deferred to a scoped follow-up. New strings pending translation in lang/*.json. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> (cherry picked from commit 5864169)
Generated with scripts/process_lang.py --auto. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DVo2fLzyxnPEJWordoQxwZ
Contributor
|
Nice PR, thank you! I tried to connect it to a PS3 controller and the UI kept spinning on Connecting without any visible message. I would change the UI in this way:
Other minor things:
What do you think? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What the PR changes
Adds basic support for the DualShock 3 / SIXAXIS as a diagnose-only device: