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.
  2. Dismiss Notice

Bug OnScreenControls forces active device switch and cancels action events immediately

Discussion in 'Input System' started by ian-gabriel, Jun 12, 2023.

  1. ian-gabriel

    ian-gabriel

    Joined:
    Feb 24, 2013
    Posts:
    12
    When using DefaultInputActions (or any setup with multiple control schemes) the basic example for OnScreenControls will not work properly.

    For example, if the you set the virtual OnScreenControl path to simulate <Gamepad>/LeftStick as soon as you send positive value to the control the active scheme will switch to Gamepad and OnScreenControl drag event will be cancelled immediately, making the control unusable with Mouse or Touchscreen.

    Is there a way to simulate output without switching active control scheme?
     
  2. ian-gabriel

    ian-gabriel

    Joined:
    Feb 24, 2013
    Posts:
    12