Closed Bug 1523353 Opened 1 year ago Closed 1 year ago

DualShock 4 support on Mac OS

Categories

(Core :: DOM: Device Interfaces, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla70
Tracking Status
firefox70 --- fixed

People

(Reporter: daoshengmu, Assigned: daoshengmu)

References

(Blocks 1 open bug)

Details

Attachments

(2 files)

No description provided.
Blocks: 1523350
Priority: -- → P3

On my MBP, it seems like I only can connect my DS4 through BT. Please refer this link [1] to know how to setup DS4 on Mac OS.

[1] https://www.macworld.co.uk/how-to/mac/use-ps4-xbox-controller-mac-3626259/

Assignee: nobody → dmu

We should follow the same rule that how we did remapping on Windows at Bug 1545180. Besides, dpad on MacOS needs to be accessed as axis values, we also did this way on Windows. Then, usage - kAxisUsageMin [1] can provide us the correct axis index to do remapping for mapping to the standard gamepads.

[1] https://searchfox.org/mozilla-central/rev/9e980da78406a808663ba640773d386a2a02965a/dom/gamepad/windows/WindowsGamepad.cpp#704

MozReview-Commit-ID: 8eypOXwdAFi

Pushed by dmu@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/69785244ccd7
Part 1: Remapping MacOS gamepads to standard gamepads. r=baku
https://hg.mozilla.org/integration/autoland/rev/a7283c9f6199
Part 2: DS4 gamepad multitouch and lightindicator support on Mac OS. r=baku

I have verified the wireless mode of multitouch and lightindicator in Win and Mac OS has to use Sony DS4 USB Wireless Adaptor instead of connecting with Bluetooth. Otherwise, the HID can't get the correct report from the system.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla70
You need to log in before you can comment on or make changes to this bug.