Search Unity

Question Gamepad.current.bButton.isPressed returns random true/false

Discussion in 'Input System' started by dcorp, Jun 22, 2020.

  1. dcorp

    dcorp

    Joined:
    Sep 6, 2017
    Posts:
    3
    EDIT: Issue was with mac, not Unity.



    Keyboard.current[Key.Z].isPressed works as expected. Returns false normally, true when pressed.

    Gamepad.current.bButton.isPressed (same with all buttons) returns true/false seemingly randomly, regardless of whether the button is pressed.

    I'm using a switch pro controller connected to Mac, Unity 2019.4.1, calling in update
     
    Last edited: Jun 23, 2020
  2. ryanslikesocool

    ryanslikesocool

    Joined:
    Jul 31, 2016
    Posts:
    49
    What was wrong on the mac end? I'm having a similar issue with the Switch Pro Controller on macOS, where everything claims to always be held down.