Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Joystick binding with interaction "Press" fires the performed event multiple times

Discussion in 'Input System' started by vbl-public, Nov 20, 2023.

  1. vbl-public


    Feb 16, 2022
    I've got an action set up with a Joystick binding and the "Press" interaction. My hope was that this would act basically like a button, so players can push the joystick in one direction (performed) and then release it (canceled). The documentation suggests it should work like this (i.e. "performed" event occurs when joystick > 0.5 and "canceled" when it goes back < 0.5).

    In practice, I can cause the performed event to fire multiple times by pulling the joystick back to something between 0.5 and 1 and then pushing it to 1 again. It seems like the documentation is wrong here about how Press works?

    Any help would be appreciated!