Search Unity

Resolved I setup the input system to only respond to Q/D but diagonally movement occurs when pressing ZQ/ZD

Discussion in 'Input System' started by Erenquin, Jul 11, 2021.

  1. Erenquin

    Erenquin

    Joined:
    Apr 9, 2018
    Posts:
    164
    Here is the setup:
    upload_2021-7-11_16-16-11.png


    As long as I press each key alone it works well.
    Q/D will move left/right.
    Z/S will not produce any movement.

    But ...
    If I press both ZQ or ZD, it will input a diagonal movement
     
    Last edited: Jul 11, 2021
  2. Erenquin

    Erenquin

    Joined:
    Apr 9, 2018
    Posts:
    164
    I do not find how to delete a post as I quite rapidly thought about the reason, this may help someone hopefully.

    Actually it is not enough to change the Input settings asset, you must re-generate the C# script.
    There is a checkbox to make it hap^pen automatically.