Search Issue Tracker
Won't Fix
Votes
0
Found in [Package]
1.11.0
Issue ID
ISXB-1079
Regression
No
Button state fluctuation when switching focus between two Game views while in Play Mode
Reproduction steps:
1. Open the attached "repro_IN-84451" project
2. Open the "Assets/Scenes/ControlScene.unity" Scene
3. Make sure you have two Game views and both of them are side by side
4. Select "Display 1" on the left Game view and "Display 2" on the right game view
5. Make sure that both Game views are focused by selecting "Play Focused" on both windows
6. Enter the Play Mode
7. Press the 'b' button and change the focus between the Game views
8. Observe the output on the right side of the "Display 1" Game view
Expected result: The output shows only "b:1", indicating that the 'b' button stays enabled without being disabled after each new Game view focus
Actual result: The output shows "b:0" first and "b:1" after, indicating that the 'b' button is being disabled before being enabled after each new Game view focus
Reproducible with: 1.3.0 (2023.1.0a1), 1.10.0 (2021.3.44f1, 2022.3.48f1, 6000.0.21f1)
Reproducible on: Windows 10 (22H2)
Not reproducible on: No other environments tested
Note: Reproducible in Player while switching focus between two different monitors
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
- Mono Windows Builds don't produce full log callstacks when generating logs
- AssetBundles fail to load when running in Built Players for Mobile Devices
- UI elements with text gets bigger and grey when Player window is moved to another screen with different resolution
- System name accepts multiline text but crops it on confirmation, duplicates input, and shrinks the field when empty
- UI element scale and position are wrong in project build when DRS is changed with HDR and Software Dynamic Resolution enabled
Resolution Note:
This is just the standard window focus change behaviour - when focus changes between windows the keyboard state is reset.
However you can change this behaviour with the setting:
Project Settings / Input System Package / Settings / Background Behavior
If you set this to "Ignore Focus" then there is no keyboard state reset when switching focus between windows - you will not see these "extra" key up/down events.