Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Resolved PS4 EnterButtonAssignment

Discussion in 'Input System' started by BTStone, Nov 12, 2021.

  1. BTStone

    BTStone

    Joined:
    Mar 10, 2012
    Posts:
    1,422
    Hey forum/support,

    when developing for the PS4 one needs to keep in mind the Enter Button Assignment for specific regions.
    Meaning the way how to enter/cancel UI prompts within a game, either with the Cross or Circle button.
    In EU/US we submit with Cross and cancel with Circle, in Japan this is the other way around.

    If we submit for US/EU our input needs to behave with Cross for submit and Circle for Cancel.
    If we submit for JP the input needs to behave the other way around.

    With the PS4 plugins provided by Unity there is a way to retrieve what EnterButtonAssignment is used (we poll a specific value) from the device itself. So ideally we'd poll this value and swap the button behaviour accordingly.

    What's the best way to approach this with the new Input System?
     
  2. BTStone

    BTStone

    Joined:
    Mar 10, 2012
    Posts:
    1,422
  3. dmytro_at_unity

    dmytro_at_unity

    Unity Technologies

    Joined:
    Feb 12, 2021
    Posts:
    212
    The value should be in player settings.

    I think the best way would be to swap usages on controls of the gamepad based on that setting. And than bind your UI actions to control usages instead of particular buttons. Doesn't seem like we have ability to change control usages on the fly right now. At least not without refreshing device configuration.

    Another way could be to create two control schemes, and switch between them based on the setting.
     
    BTStone likes this.
  4. BTStone

    BTStone

    Joined:
    Mar 10, 2012
    Posts:
    1,422
    I went with two control schemes, this seemed to be quite straight forward with the current setup. Thanks for pointing in the direction :)