-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Full support in Unity #33
Comments
Actually got something working now using HIDAPI library and grabbed the needed infos from here and elsewhere to get the correct offsets and ids to output the stuff. (annoying to find this info) Well I didn't do input... but after some tinkering and using this hdapi I think I could actually just pop your dll in and use it as well 😅 |
I'm still wondering if haptic feedback has more to it than just these two motors (left and right)? any insight on this? As an example: ghost of tsushima when you ride on your horse it makes vibrations according to the steps. |
After further testing, it is rather "simple" as sending audio data with certain channels to the audio device of the controller (the one with DualSense in sound panel). Used CSCore and made it output as 4 or 6 or 8 channels using the matrix and it vibrates now but also sometimes you can hear the sound through the controller. Anyway I can not seem to combine this with the HIDAPI writes because the audio one stops working if i do send a controller output report (reading seems fine). Also it won't work until I reconnect the controller usb (+ also restart unity, a seperate vs project works fine after reconnect without restart) Any ideas why this would be and how to stop it from happening so I can use the write to do stuff like adaptive triggers still but also keep using the audio haptic feedback at the same time? Edit: |
@devingDev it looks like that haptics type (audio haptics or "compatible" rumble with 0x00-0xff values) is controlled by the Additional info:
this game is using proprietary library for interaction with DualSense. it is available only for Sony partners. |
Thanks @DJm00n ! https://controllers.fandom.com/wiki/Sony_DualSense#Bluetooth |
Bluetooth haptics on DualSense is only working on actual PS5. AFAIK on PC it is not reversed yet. |
Yeah apparently not even in their own Remote play... |
@devingDev I’d say it is more because of marketing reasons - advanced audio features of DualSense/DualShock4 are for actual console users. Just speculation. PS: some work was done on this here |
Interesting.. no dualsense mentions but i assume it uses almost the same stuff. 🤔 |
Hello and thanks for your work!
Sorry if this is the wrong place to ask but:
I want to try to have DualSense support in Unity Editor as well as in Build (Windows PC only for now since it would be too much work otherwise)
I tried this library:
https://github.com/nullkal/UniSense/
Sadly it does not work fully and the repo seems to be unmaintained.
The Problems (btw I'm on Unity 2022.3.28f1) :
In Unity Editor: The adaptive triggers seem to work, vibration however does not.
In PC Build: Adaptive triggers do not work, left and right vibrations seem to work (not sure if there is more to haptic feedback than those two)
Touchpad color works in both cases.
Do you have any ideas how I could fix that, maybe using this library?
I read a bit through the PDF and saw you have to use lib files and I'm not sure if that works in Unity
Also I saw this https://docs.unity3d.com/Manual/NativePlugins.html but I'm really overwhelmed and not sure if I can use it this way...
Could you maybe help?
The text was updated successfully, but these errors were encountered: