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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Question Mouse on screen overrides gamepad rotation

Discussion in 'Input System' started by gamegart1, Oct 4, 2022.

  1. gamegart1

    gamegart1

    Joined:
    Jul 30, 2020
    Posts:
    2
    I'm creating the movement of a 2d character with keyboard&mouse and gamepad, using ScreenToWorldPoint for aiming the character with m&k but when I switch to a gamepad the aiming is override by the mouse on screen, if I click outside on another panel in unity the gamepad works properly
    What needs to do to avoid the mouse on screen override the gamepad controls?, I already tried changing the player default control scheme with playerInput.defaultControlScheme = "Gamepad"; but it doesn't change in the inspector, it only works when I switch it manually.
     
  2. gamegart1

    gamegart1

    Joined:
    Jul 30, 2020
    Posts:
    2
    I find the solution, I just change the action properties from Value to Pass Through in the Player Input Actions