Search Unity

Input dispatches 3 times instead of 1

Discussion in 'Input System' started by VirtualMaestro, Feb 19, 2021.

  1. VirtualMaestro

    VirtualMaestro

    Joined:
    Jul 2, 2014
    Posts:
    22
    Hi guys,
    I handle input through PlayerInput and UnityEvents, so I have a handler for the mouse click. This handler is invoked three times (each time for one phase), but I've setup interaction "Press Only".
    Should it be like this, so it means that I have to filter it like
    Code (CSharp):
    1. if (context.performed) {}
    or this is a bug? (Input system 1.0.2, Unity 2020.2.4)
    I've tried a dozen of variations for "Interaction", but currently it looks like this:
    Interaction_1.png

    Interaction_2.png
     
    robert-sherwood likes this.
  2. robert-sherwood

    robert-sherwood

    Joined:
    Jan 7, 2018
    Posts:
    14
    I am having the same problem with keyboard input.