Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gamepad Input is not processed when Game View is not focused #430

Closed
douglas-piconi opened this issue Feb 21, 2019 · 3 comments
Closed

Gamepad Input is not processed when Game View is not focused #430

douglas-piconi opened this issue Feb 21, 2019 · 3 comments
Labels
bug Issues where existsing functionality misbehaves enhancement Functionality that would be good to have

Comments

@douglas-piconi
Copy link
Contributor

How to reproduce:

  1. Open attached project
  2. Open scene InputTest.unity
  • Make sure you have a controller attached
  1. Play the scene
  2. Wiggle the left joystick of the controller
  • Note it prints the x and y axes
  1. Click Clear in the console
  • This defocuses the game view and focuses on the console window instead
  1. 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

@douglas-piconi douglas-piconi added bug Issues where existsing functionality misbehaves enhancement Functionality that would be good to have labels Feb 21, 2019
@douglas-piconi
Copy link
Contributor Author

This is related to bug #376

parts of this are both bug and enhancement, and will need to be coordinated with controlling the UI with the Stick.

@douglas-piconi douglas-piconi changed the title Input is not processed when Game View is not focused Gamepad Input is not processed when Game View is not focused Feb 21, 2019
@JiaUnity
Copy link
Contributor

JiaUnity commented Mar 20, 2019

This should be by design.

@JiaUnity
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues where existsing functionality misbehaves enhancement Functionality that would be good to have
Projects
None yet
Development

No branches or pull requests

2 participants