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 WithMatchingEventsBeingSuppressed does not work with a PS4 controller during rebinding.

Discussion in 'Input System' started by emredesu, Oct 9, 2022.

  1. emredesu

    emredesu

    Joined:
    Aug 12, 2021
    Posts:
    34
    I have an action that is assigned to turn off the options menu when the "Circle" key is pressed. My current rebinding function usage looks as follows:

    Code (CSharp):
    1.         var rebindOperation = action.PerformInteractiveRebinding()
    2.             .WithControlsHavingToMatchPath("<DualshockGamepad>")
    3.             .WithBindingGroup("PC_DualshockGamepad").
    4.             .WithTimeout(10f)
    5.             .WithMatchingEventsBeingSuppressed()
    6.             .OnCancel(OnCancelledBinding)
    7.             .OnComplete(operation => OnSuccessfulBinding(operation, rebindComponent))
    8.             .Start();
    However, while the WithMatchingEventsBeingSuppressed() option works with other controllers I tested it with (keyboard and Xbox One Gamepad), it does not seem to work with a PS4 gamepad. I found this (https://issuetracker.unity3d.com/is...-when-trying-to-perform-interactive-rebinding) bug tracker link from a while ago that claims to have fixed this issue with input system 1.1, however I am still having the same issue with input system 1.3. What do? What kind of a workaround can I create for this issue? I tried disabling the actions that turn off the options menu, however that doesn't seemed to have worked either.
     
    Last edited: Oct 10, 2022