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
- Editor default Stylesheet/Matching Selector buttons in Debugger don't do anything
- Graphics.DrawMeshNow stops rendering Render Texture after a few frames when viewed in the Player
- New selector in Matching Selectors displays as on line -1 in debugger
- The first frames are skipped when playing a video
- Text auto-scrolling can not work when naming assets/objects until backspace key is pressed
Resolution Note (fix version 1.1-pre.6):
Fixed in 1.1-pre.6 (2022.1.0a9)