Unity Issue Tracker - Out-of-focus DirectInput Gamepad devices do not set ButtonControl.wasPressedThisFrame correctly
Closed
ISXB-140
Out-of-focus DirectInput Gamepad devices do not set ButtonControl.wasPressedThisFrame correctly
Package: Input System
Input System
Won't Fix
1.2.X
Seemed to be old port related to https://jira.unity3d.com/browse/UUM-10828
Reproduction steps:
1. Connect a DirectInput Gamepad to your system
2. Download and open the attached project: "InputSystemBug.zip"
3. Open the SampleScene
4. Build and Run the Windows Standalone Player
5. In the Windows app, press buttonSouth on the Gamepad (Button A/ Cross)
6. Observe the number of presses being counted in the Game view
7. Click outside the Windows app to make it lose focus
8. Press buttonSouth again
Expected result: The number of presses in Game view is still being counted
Actual result: The number of presses stops being counted until the Game view is in focus again
Reproducible with: Input System 1.1.1, Input System 1.2.0, Input System 1.3.0 (2019.4.32f1, 2020.3.23f1, 2021.1.28f1, 2021.2.3f1, 2022.1.0a14)