CircumSpector/DS4Windows

Add DualSense Haptic Feedback support

DJm00n opened this issue · 3 comments

DualSense advanced haptic feedback can be triggered via audio channel sent to it. Actuators are used in this controller not vibration motors like in DS4 and in result it can give better vibration experience to users.

The feature is related to #131 due to the need of sending audio data to controller and compress it with SBC before send via Bluetooth.

Here is demo code that can work for USB use case (without compression): https://gist.github.com/Ohjurot/b0c04dfbd25fb71bc0da50947d313d1b
Related Linux driver code: https://github.com/torvalds/linux/blob/master/drivers/hid/hid-playstation.c (DS_OUTPUT_VALID_FLAG0_COMPATIBLE_VIBRATION shouldn't be set invalid_flag0 as far as I understand).

Very nice timing, this will certainly help my journey of DualSense emulation 👍

I think Roderick Colenbrander roderick.colenbrander@sony.com can be asked for some details on this - he is author of DualSense support in Linux kernel code. :)

Here he says that he can maybe elaborate on audio support for DS4:

The other areas are very hard for me to get info on, so I can't promise that right now. Audio related stuff for DS4 is a maybe at some point. It is very complicated and all tunnelled through HID... (in case of Bluetooth).

torvalds/linux@5115109

Kudos to him 🙏