ndeadly / MissionControl

Use controllers from other consoles natively on your Nintendo Switch via Bluetooth. No dongles or other external hardware neccessary.
GNU General Public License v2.0
2.48k stars 137 forks source link

[Feature Request]: DualSense support #476

Closed Northwemko closed 2 years ago

Northwemko commented 2 years ago

Feature Description

DualSense have haptic feedback, adaptive triggers, can u add support?

Rationale

his special function is very interesting,i think many people will be happy to try this different experience

Additional Details

see this video https://youtu.be/wAA6lqhROrE

ndeadly commented 2 years ago

Haptic feedback might be possible in the future, as I believe the Sony dev who added Dualsense support for the Linux kernel said there were hid commands for it. Currently though, as it stands these commands remain undisclosed and the only known way to send haptic feedback to the controller is via Bluetooth audio. This method is too complicated to implement, especially within the constraints of a closed source console OS. It would also likely conflict with Bluetooth headsets and impact performance due to the limited Bluetooth bandwidth available on the console

The adaptive triggers, on the other hand, can be set via regular hid commands as far as I know. The problem here is that games aren't designed to use them. It doesn't really make sense to activate them when there is no information coming from the console about when to do so.

Masamune3210 commented 2 years ago

On the triggers, they could be set to mimic the fact that the switch doesn't have analog triggers, essentially have them have a click and if possible a higher trigger point so that it more resembles the joycon and pro controller trigggers

otto-dev commented 2 years ago

The conversation in this issue seems odd to me. Just in case this snuck under the radar: MissionControl fully supports the PS5 DualSense controller, including rumble (i.e. haptic feedback as far as switch is concerned?), triggers (just like it was described above), even motion controls when tilting the controller.

I'm not involved in the development, only my household uses it all the time.

ndeadly commented 2 years ago

OP is referring to to Soný's equivalent of "HD Rumble" which uses LRAs instead of ERM motors and essentially allows arbitrary waveforms to be reproduced as vibrations. The Dualsense controller can also emulate the ERM motors found in the DS4 and previous generations and allows for just sending single amplitude values. This is what Mission Control currently uses, but it should theoretically be possible to reproduce something similar to what you feel on the joycons or pro controller.

The Dualsense adaptive triggers can also be driven to increase or decrease the amount of resistance felt when the player pulls them. This is currently not in use at all. I don't think it really makes sense to use them with games that weren't designed with them in mind, but the video posted above shows them being activated while playing Mario Kart. Presumably they are being driven by the rumble data or something. This might be kind of convincing for some games but I don't think it really makes any sense universally.

gander-code commented 1 year ago

OP is referring to to Soný's equivalent of "HD Rumble" which uses LRAs instead of ERM motors and essentially allows arbitrary waveforms to be reproduced as vibrations. The Dualsense controller can also emulate the ERM motors found in the DS4 and previous generations and allows for just sending single amplitude values. This is what Mission Control currently uses, but it should theoretically be possible to reproduce something similar to what you feel on the joycons or pro controller.

Are there plans to implement this? I noticed the issue was closed shortly after. I would love to see this feature.

ndeadly commented 1 year ago

See my previous reponse https://github.com/ndeadly/MissionControl/issues/476#issuecomment-1136885343

In short, no, not unless a method to do it over hid is made public. Bluetooth audio is not feasible.

gander-code commented 1 year ago

See my previous reponse #476 (comment)

In short, no, not unless a method to do it over hid is made public. Bluetooth audio is not feasible.

Ah sorry I thought since that was earlier you had discovered a way. I understand. Thanks for the quick and helpful response.

VHemmekam commented 9 months ago

On the triggers, they could be set to mimic the fact that the switch doesn't have analog triggers, essentially have them have a click and if possible a higher trigger point so that it more resembles the joycon and pro controller trigggers

I implemented this behavior in https://github.com/ndeadly/MissionControl/pull/757