Search Unity

Question Limit Vector2 action input to be only up, down, left or right.

Discussion in 'Input System' started by lavendergoons, Nov 26, 2020.

  1. lavendergoons


    Dec 28, 2017
    I have an action that has a Vector2 composite (mapped with 4 arrow keys) binding and a DPad binding. I want to limit the input to return up, down, left, or right Vector2s. I want to ignore simultaneous key presses or directional DPad presses and just return one direction.