Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

PS5 Controller

Discussion in 'General Discussion' started by quickytools, Nov 9, 2020.

  1. quickytools

    quickytools

    Joined:
    Aug 26, 2019
    Posts:
    19
    I just bought a PS5 controller hoping it would be plug and play w/ Unity (on Mac). I'm looking to use it for game controls. Anyone else have luck? The Dual Sense controllers are available now.
     
  2. quickytools

    quickytools

    Joined:
    Aug 26, 2019
    Posts:
    19
    I'm trying to use it with the input system warriors project.
     
  3. BLjung

    BLjung

    Joined:
    Sep 26, 2020
    Posts:
    4
    Don't expect too much. They have not yet fully mapped Dual shock 4 after all these years. The new input system is still missing the touchpad, gyro and accelerometer.
    It will probably take months (years?) before you can use the dual sense controller in Unity.
     
    Walter_Hulsebos and gabagpereira like this.
  4. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    Rewired will probably get support first.
     
    Walter_Hulsebos and ShilohGames like this.
  5. quickytools

    quickytools

    Joined:
    Aug 26, 2019
    Posts:
    19
    Ok. Maybe new controllers will be supported faster these days given the new input system seems like a solid and easy system to extend. Here's the Unity video on the new input system and how explore it.
     
    BLjung likes this.
  6. BrandyStarbrite

    BrandyStarbrite

    Joined:
    Aug 4, 2013
    Posts:
    2,068
  7. quickytools

    quickytools

    Joined:
    Aug 26, 2019
    Posts:
    19
    The controller doesn't work for development in Unity yet. At least not plug and play in the Unity editor. I'm trying to get access to the PS5 SDK at the moment. I'll update when I find access.
    I read an article Steam seems to have integration but I believe it's only basic controls and not the more advanced features. Don't quote me on that the article didn't go into much detail and I don't have access to the Steam SDK.
     
    BrandyStarbrite likes this.
  8. Mauri

    Mauri

    Joined:
    Dec 9, 2010
    Posts:
    2,657
  9. lsrodrigues

    lsrodrigues

    Joined:
    Nov 14, 2017
    Posts:
    1
    Awesome, I'll subscribe to this post in case you manage to get access to it. Thanks
     
  10. Birb64

    Birb64

    Joined:
    Dec 29, 2020
    Posts:
    1
    I mean, you're not wrong. But steam isn't the problem, it's unity. Unity has a build option for ps5 in the latest version as of 12/29/2020, so support for the controller should arrive when unity 2021 gets out of the beta phase. Atm, we can only wait. I myself am excited for the ps5 controller support, since I bought a ps5 controller not too long ago.(just the controller, I wanted to test things and have a good controller to myself) something off-topic: I think the reason why xbox x/s series unity devs aren't having trouble is because xbox x/s series is just a remolded xbox one, but more powerful.
     
  11. Mauri

    Mauri

    Joined:
    Dec 9, 2010
    Posts:
    2,657
    @ryanaalley05 I admit my post was more targeted towards @quickytools as he/she read an article about Steam supporting the PS5 controller and wasn't so sure. Then I found the Steam announcements and thought I should let him/her (and other interested devs here) know. I should've quoted the post to make it more clear, my bad.

    But then again you're right. Unity is lagging behind as usual.
     
  12. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    20,128
    Yes, but it requires the PS5 SDKs. You can't do anything with just Unity.
     
  13. sterneck_moritz

    sterneck_moritz

    Joined:
    Mar 23, 2020
    Posts:
    8
    https://github.com/nullkal/UniSense

    Just stumbled upon this repo! It's really bare bones with not much but it works.
    I am able to control the Triggers of my dualsense, setting the LEDs and so on.
     
  14. Ruberta

    Ruberta

    Joined:
    Mar 5, 2019
    Posts:
    110
    It's not landed on UE4.26 too. I believe both engine have PS5 controller support but only for those who actually work on the native console. There are some games on PS5 that use Unity such as Goodbye Volcano High and JETT The Far Shore.

    upload_2021-5-4_9-24-43.png
     
  15. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    20,128
    For people who have the license to develop for consoles they download a special package that adds support for it to the input system. We may eventually see the DualSense controller come to Windows too but support for desktop platforms is not a prerequisite for supporting it on consoles.
     
    Last edited: May 4, 2021
    Joe-Censored likes this.
  16. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    3,877
    I mean, those with access to the PS5 SDK have no problem because it does support its own controller. I am guessing you are not a licensed PS5 developer and as such have no access to the correct stuff. Its not usable for PC at this time, as @Ryiah mentioned
     
    Ryiah and Joe-Censored like this.
  17. aMIGA_dUDE

    aMIGA_dUDE

    Joined:
    Oct 12, 2019
    Posts:
    21
    I just think off my head but wouldn't be surprised if there isn't a ARM chip inside there. You could also use some packet sniffing tools on USB / wireless signals (I dont know if use Bluetooth/or need to use SDR). It could be an encrypted datastream, I have no idea.

    Persionaly if wanted to do it and couldn't workout datastream out I would get some AI analyse it.

    Just stay within the law. Don't use any info that comes from official SDK
     
  18. Joe-Censored

    Joe-Censored

    Joined:
    Mar 26, 2013
    Posts:
    11,847
    BrandyStarbrite likes this.
  19. Lars-Steenhoff

    Lars-Steenhoff

    Joined:
    Aug 7, 2007
    Posts:
    3,450
    Incontrol supports it too
     
  20. kdarius43

    kdarius43

    Joined:
    Mar 16, 2015
    Posts:
    170
    so ps5 in a pc is not mapped correctly....?
     
  21. wahntin

    wahntin

    Joined:
    Sep 17, 2019
    Posts:
    83
    That's what I see here as-well. Looks like when a PS5 controller is connected, it keeps sending "touchPadButton".
    The dpad is not sending anything at all and the left trigger/shoulder seems to be sending a lot of different signals.

    (at)unity: Is there a good way to at least safely ignore the PS5 controller or maybe even let users know that it is not supported yet?
     
  22. IDunnoIGuess

    IDunnoIGuess

    Joined:
    Nov 18, 2021
    Posts:
    2
    This is maybe a a little side tangent. I found and have just started using using a Unity asset that integrates with DualSense controllers. It does not seem to interface fully with the Unity input system, but the asset does let you detect any type of button press including the touch pad and it also lets you turn things on like rumble, lights, haptic feedback, and the trigger tension.

    It is called "Controller Interface For DualSense".

    https://assetstore.unity.com/packag...ent/controller-interface-for-dualsense-199328