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.

Using a PS4/360 controller in game testing.

Discussion in 'General Discussion' started by bartleycollin, Nov 19, 2013.

  1. bartleycollin

    bartleycollin

    Joined:
    Aug 1, 2012
    Posts:
    88
    Hey guys.

    I'm planning on releasing my game for PS4 but obviously I would like to be able to test with a PS4 controller. I heard it works with windows. I have a controller, and I was curious as to how I would go about setting it up for Unity development... If for some reason that's not possible right now then I do also have a 360 controller.

    Thanks!

    -Collin
     
  2. GamehubDev

    GamehubDev

    Joined:
    Nov 19, 2013
    Posts:
    59
  3. bartleycollin

    bartleycollin

    Joined:
    Aug 1, 2012
    Posts:
    88
    Thanks for the suggestion. Before I do that I'm going to wait it out and see what people have to say about the PS4 controller.
     
  4. GamehubDev

    GamehubDev

    Joined:
    Nov 19, 2013
    Posts:
    59
    Ok I dont think it's possible to use a PS4 controller with unity at all. And the controller(And the console) is pretty new so there arent many correct maps of the controller.
     
  5. XGundam05

    XGundam05

    Joined:
    Mar 29, 2012
    Posts:
    473
    To my knowledge, the Dualshock 4 works with PC out of the box. Just doesn't have touchpad support for PC.
     
  6. bartleycollin

    bartleycollin

    Joined:
    Aug 1, 2012
    Posts:
    88
    Either way.. A 360 controller is pretty similar to the PS4 controller. (Although I like the PS4 controller much better)
     
  7. bartleycollin

    bartleycollin

    Joined:
    Aug 1, 2012
    Posts:
    88
    That's what I heard as well. Any thoughts on how I would set it up with Unity?
     
  8. GamehubDev

    GamehubDev

    Joined:
    Nov 19, 2013
    Posts:
    59
    Just plug the ps4 controller into your pc via usb then see if you can walk around with your character ingame. If not then just try to map the ps4 controller like any other controller.
     
  9. bartleycollin

    bartleycollin

    Joined:
    Aug 1, 2012
    Posts:
    88
    Alright. I'll see what I can do :)
     
  10. Kinos141

    Kinos141

    Joined:
    Jun 22, 2011
    Posts:
    969
    I've heard that PS4 controller works with Steam Big Picture mode, which means it has to have drivers like Xbox 360 controller. I would test it myself, but I have to wait for another check :p
     
  11. Murgilod

    Murgilod

    Joined:
    Nov 12, 2013
    Posts:
    9,859
    The PS4 controller is a standard PC controller. It just works out of the box.
     
  12. bartleycollin

    bartleycollin

    Joined:
    Aug 1, 2012
    Posts:
    88
    So theoretically it's already mapped for me? Or is this still something I need to do...
     
  13. TylerPerry

    TylerPerry

    Joined:
    May 29, 2011
    Posts:
    5,577
    Use InControl its amazing and already has the PS4 controller mapped for windows and mac.
     
  14. bartleycollin

    bartleycollin

    Joined:
    Aug 1, 2012
    Posts:
    88
    I plugged it in and all I was able to do was walk with the left stick. I couldn't look around or jump... Any thoughts?
     
  15. bartleycollin

    bartleycollin

    Joined:
    Aug 1, 2012
    Posts:
    88
    Awesome! Let me look at this! :)
     
  16. Seth-McCumber

    Seth-McCumber

    Joined:
    May 26, 2013
    Posts:
    141
    I got my Dualshock 4 controller a bit ago, and PS4 today, Still need to mess around with the controller on some games
     
  17. bartleycollin

    bartleycollin

    Joined:
    Aug 1, 2012
    Posts:
    88
    I've gotta say.. It's the nicest controller I've ever used :)
     
  18. bartleycollin

    bartleycollin

    Joined:
    Aug 1, 2012
    Posts:
    88
    Aren't you the one who was making that "Scurge of the shadows" game? Are you planning on releasing for PS4? :)
     
  19. inafield

    inafield

    Joined:
    Feb 26, 2013
    Posts:
    281
    PS4 controller works with PC out of the box? Great news, as the PS3 controller requires some crappy drivers or else some drivers that emulate a 360 controller. Not ideal.
     
  20. Sefirosu777

    Sefirosu777

    Joined:
    Mar 8, 2013
    Posts:
    1
    PS4 mapping for Unity 4.3, type "joystick button" then the number in input settings(if you don't already know).

    square = 0
    x = 1
    o = 2
    triangle = 3
    L1 = 4
    R1= 5
    L2 = 6
    R2 = 7
    Share = 8
    Start = 9
    L3 = 10
    R3 = 11
    PS = 12
    touch pad = 13
     
    cajuuh likes this.
  21. derkoi

    derkoi

    Joined:
    Jul 3, 2012
    Posts:
    2,246
    All this talk about releasing PS4 games with Unity makes me think I've missed some important news. Last I heard they hadn't released the Unity Playstation. I've just emailed Playstation Dev Support about this.

    Anyone care to enlighten me? :D
     
  22. GamehubDev

    GamehubDev

    Joined:
    Nov 19, 2013
    Posts:
    59
    You haven't missed anything. ;)
    But Unity will be able to build to ps4 and xbox one soon!
    Unity developers can get a xbox developer license if they have a good enough game to show! :)
    http://news.xbox.com/2013/11/xbox-one-unity-id
     
    Last edited: Nov 21, 2013
  23. derkoi

    derkoi

    Joined:
    Jul 3, 2012
    Posts:
    2,246
    Ah thanks. As for the ID@Xbox thing, I've already applied. :p

    Part of their most recent email said:
     
  24. GamehubDev

    GamehubDev

    Joined:
    Nov 19, 2013
    Posts:
    59
    Cool, I know this is kinda off-topic but I just applied todays so I might not even get a license! :(

    Derkoi what are you currently working on and how big is your team?

    My team consists of one member (me). I'm currently working on a fps.


    -GamehubDev
     
    Last edited: Nov 21, 2013
  25. derkoi

    derkoi

    Joined:
    Jul 3, 2012
    Posts:
    2,246
    Gotta try though. You never know. :)

    My team is just me and I'm working on a fishing simulator at the moment. Also I've released 4 other games over just under 2 years. As you know, they ask what you've done on the application form.
     
  26. GamehubDev

    GamehubDev

    Joined:
    Nov 19, 2013
    Posts:
    59
    Could you show me some of the gameplay within the fishing sim?
    I know there's obviously alot of fishing, but I mean graphics and things like that. :)
     
  27. derkoi

    derkoi

    Joined:
    Jul 3, 2012
    Posts:
    2,246
    PM'd you GamehubDev.


    Emailed Playstation dev support asking when Playstation Unity is released and if I could become a beta tester, this was my reply.

    Not the most encouraging reply. :(
     
  28. GamehubDev

    GamehubDev

    Joined:
    Nov 19, 2013
    Posts:
    59
    They didn't say no! :)

    -GamehubDev
     
  29. alonsoGarrote

    alonsoGarrote

    Joined:
    Jun 23, 2012
    Posts:
    25
    I just plugged in my PS4 controller on MAC yosemite Unity 4.3.4 and it works with my current player!.
     
    Miricks likes this.
  30. Not_Sure

    Not_Sure

    Joined:
    Dec 13, 2011
    Posts:
    3,544
    I was doing a character controller test with a PS4 controller and it was pretty straight foreward. Just went to the input tab and punched in what I wanted and did some fiddling with it. Took, MAYBE 40 minutes to set everything up. Super easy.

    Just make sure to set the dead zone to about 0.1 and don't use raw input or you will get some drift. That had me a little stumped.
     
  31. austinIsBoss1178

    austinIsBoss1178

    Joined:
    Nov 26, 2015
    Posts:
    2
  32. hippocoder

    hippocoder

    Digital Ape Moderator

    Joined:
    Apr 11, 2010
    Posts:
    29,723
    People sure like ignoring inControl which sorts all this and is largely free if you don't mind an older version (on github).
     
    radiantboy likes this.