Button press event firing twice?

Hi all,

Just getting started on the new input system and it's ace! But I'm having this issue where a press event seems to be happening twice when it should only occur once.

I have a simple button action -
5868304--624523--Screen Shot 2020-05-19 at 11.23.37 am.png

With a Unity event -
5868304--624520--Screen Shot 2020-05-19 at 11.19.35 am.png

public void Input_SpecialToggle(InputAction.CallbackContext context)
        var value = context.ReadValue<Single>();
        Debug.Log("value = " + value);

And when I press and release I get this in the console -
5868304--624517--Screen Shot 2020-05-19 at 11.17.07 am.png

Any ideas? Thanks,

Hi Pete,
The first log is from Started phase and the second from Performed phase (see CallbackContext.phase).
It's described in more detail here: https://github.com/Unity-Technologies/InputSystem/issues/959#issuecomment-567942699

Great thanks Pawel!