Unity-Technologies / InputSystem

An efficient and versatile input system for Unity.
Other
1.42k stars 306 forks source link

FIX: interactions reset when performed is triggered by the cancelation the current active interaction (ISXB-310) #1963

Closed bmalrat closed 1 month ago

bmalrat commented 2 months ago

Description

The bug occur when an action is drive by multiple interaction. If the first one is cancelled and the second perform, next time the action will perform if the first one is canceled even if the second one didn't really performed. jira : https://jira.unity3d.com/browse/ISXB-310

Changes made

Added a reset of subsequent interactions if the active interaction is cancelled and trigger the performed of the next action in the list during the cancel.

Added a test

Updated documentation that was not working

Testing

test with the jira project, the test and other configurations

Risk

Please describe the potential risks of your changes for the reviewers.

Checklist

Before review:

During merge:

After merge: