Search Issue Tracker
Fixed in 1.1-pre.6
Votes
1
Found in [Package]
1.1.0-preview.1
Issue ID
1272563
Regression
No
[Input System] PerformInteractiveRebinding method doesn't detect button input when rebinding part of a 2D Vector Composite
How to reproduce:
1. Open the attached "1272563 repro" project
2. Open the "SampleScene" Scene from Assets > Scenes folder
3. Enter Play Mode
4. Press the "O" key on the keyboard
Expected result: "O" key is bound to the Up part of the 2D Vector Composite
Actual result: nothing happens
Reproducible with: 0.2.10-preview (2019.4.9f1), 0.9.6-preview (2019.4.9f1), 1.1.0-preview.1 (2019.4.9f1, 2020.1.4f1, 2020.2.0b1)
Could not test with: 0.1.2-preview (compilation errors)
Notes:
-If the Control Type of the "Vector Composite" Action from the "InputAsset" is changed from Vector 2 to anything else, the issue no longer reproduces
-This issue reproduces with Value and Pass Through Action Types and Analog, Digital, Digital Normalized Modes of the Composite
-The expectedControlType when targeting a specific part of the composite is Vector2 which is probably causing the issue
-
jamesdrd123
Nov 13, 2020 17:02
Just wanted to add a comment for anyone who has this same problem.
I believe the OP was correct in their assumption that the issue was the expected control type as when I set the expected control type to "Axis" using .WithExpectedControlType("Axis"), PerformInteractiveRebinding was able to detect the input fine.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Prefab override popup is cropped/positioned incorrectly when more than one display is used and a higher display Scale is set
- Opening a dropdown on a small screen results in its instant closing when mouse cursor is pressed where the dropdown is going to be opened
- Only "ArgumentNullException: Value cannot be null" is displayed instead of all the actual errors when opening a project with numerous compilation errors
- MultiColumnListView and MultiColumnTreeView do not change selection on first input when focus is set by code
- SerializedProperty.DataEquals is returning false when SerializedProperty.EqualContents return true
Resolution Note (fix version 1.1-pre.6):
Fixed in 1.1-pre.6 (2022.1.0a9)