Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice
  3. Dismiss Notice

Question Why is the PS4 controller's input so messed up

Discussion in 'Input System' started by ThatGuyWithAMask, May 19, 2023.

  1. ThatGuyWithAMask

    ThatGuyWithAMask

    Joined:
    Jun 21, 2022
    Posts:
    18
    I am trying to make a 2D platformer using the input system package, i was trying to test the game with a PS4 controller when the input was messed up. So i did some digging and found out it was a bug that was happening a while ago but it was patched in the 1.4.1 update of the package (from my understanding), my input system is on 1.3.0 but i am having the same problem and don't know how to fix it?
     
    Last edited: May 20, 2023
  2. ThatGuyWithAMask

    ThatGuyWithAMask

    Joined:
    Jun 21, 2022
    Posts:
    18
    The problem is that when I click play, the player can move but you are being constantly being pushed the right. The strange thing is that this does not happen when I use the keyboard or Xbox controller.
     
  3. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    8,405
    Sounds like your controller has some drift in one of the sticks?

    I would try set up a dead-zone for the input.
     
  4. AcidArrow

    AcidArrow

    Joined:
    May 20, 2010
    Posts:
    11,988
    I believe Unity simply doesn't play that well with the ps4 controller. If you have the choice, try switching from wired to bluetooth, or vice versa, or try something like DS4Windows to make it appear to Unity like a an XBox controller.
     
  5. ThatGuyWithAMask

    ThatGuyWithAMask

    Joined:
    Jun 21, 2022
    Posts:
    18
    Ok, thanks i will give it a try,
    it's not stick drift I tried with a different ps4 controller and hade the same problem.
     
    Last edited: Aug 16, 2023