Search Issue Tracker

By Design

Votes

1

Found in [Package]

1.2.0

Issue ID

1381485

Regression

No

InputSystem Package unresponsive when multiple bindings on an action

Package: Input System

-

Reproduction steps:
1. Open project "TestDebugInput.zip"
2. Open Scene "SampleScene" and enter Play Mode
3. Click and hold the Orange Panel
4. Observe logs in the Console window

Expected result: "Get pos" is printed once
Actual result: "Get pos" is printed twice

Reproducible with: 1.2.0 (2019.4.32f1, 2020.3.23f1, 2021.2.3f1, 2022.1.0a15)

Note: This doesn't happen when clicking and holding on the Green Panel

  1. Resolution Note:

    The code is hooking the same method up to all three action notifications (started, performed, and canceled). So the same code gets called for every change on the action. An action will go through 'started' before going to 'performed' or 'canceled'. Thus you get one call for 'started' and one call for 'performed'. So two calls. 'InputAction.CallbackContext.phase' tells you which phase the action currently is in.

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.