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.

Bug Possible bug with controllers on iOS

Discussion in 'Input System' started by ThatRaincoat, May 6, 2020.

  1. ThatRaincoat

    ThatRaincoat

    Joined:
    Jul 12, 2017
    Posts:
    27
    Hello!

    I've been implementing the new input system into our project but when I went to test controllers on iOS the game is unresponsive.

    Code (CSharp):
    1. if (Gamepad.current != null)
    2. {
    3.      if (Gamepad.current.buttonNorth.isPressed)
    4.      {
    5.           //Game Action
    6.      }
    7. }
    Code like this produces the expected result on PC and in Editor however nothing happens when built to iOS when using a PS4 controller.

    Is this a bug or is there something I am missing?
     
    Last edited: May 20, 2020
  2. UltimateTom

    UltimateTom

    Joined:
    Jan 22, 2019
    Posts:
    3
    Did you ever resolve this? I've set up the new input system and ps4 gamepads work fine on all our platforms except iOS.