Search Unity

Hold interaction stuck at Performed

Discussion in 'Input System' started by Devil_Inside, May 11, 2021.

  1. Devil_Inside

    Devil_Inside

    Joined:
    Nov 19, 2012
    Posts:
    1,119
    So I bumped into this weird behavior with Hold interaction for a binding.
    Case 1: Simple any keyboard key binding:
    Img0.png
    Works as I expect: I press any key, the action goes from "Waiting" to "Started" and then switched to "Performed". Once you release the key it goes to "Canceled" and immediately back to "Waiting".
    Works multiple times in a row.

    Case 2: Any keyboard key binding + Left Mouse Button binding
    Img1.png
    If I press either a keyboard key or LMB, the action goes from "Waiting" to "Started" and then to "Performed", however if I release the pressed key/button, the action stays at "Performed" and there is no way to reset it back to "Waiting" so the action can be performed multiple times in a row.

    Case 3: A single VR Oculus Touch button binding
    Img2.png
    Same as Case 2, stuck at "Performed" after first try and not being able to perform multiple times.

    Like which of these behaviors is the expected one, and how can I reset the action so it could be performed again?
     
  2. Devil_Inside

    Devil_Inside

    Joined:
    Nov 19, 2012
    Posts:
    1,119