Gamepad Input is not processed when Game View is not focused
How to reproduce:
- Open attached project
- Open scene InputTest.unity
- Make sure you have a controller attached
- Play the scene
- Wiggle the left joystick of the controller
- Note it prints the x and y axes
- Click Clear in the console
- This defocuses the game view and focuses on the console window instead
- Wiggle the left joystick again
-
Note how nothing is printed in the console now
-
This does not happen on OSX; the controller is always detected there
This is related to bug https://github.com/Unity-Technologies/InputSystem/issues/376
parts of this are both bug and enhancement, and will need to be coordinated with controlling the UI with the Stick.
This should be by design.
I notice when I test with both input systems enabled, the old one never shows input when Game view is out of focus during Play mode. I think the new one should be the same. I also think it is a reasonable design. If a customer wants to make adjustment in the Scene, having input pass into the Game may interrupt the view. I'm closing this as By Design. If there is any corner case should be exempted, I suggest we evaluate those separately.