-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Add gamepad_stick_input example #6052
Conversation
I'm hoping someone will review this with an eye to recommended Bevy practices. For example, the way ClearColor is used I believe may be outdated. |
Moving some feedback from the other PR here: I would prefer that we use the default window size and rework this so that the zone squares are displayed in the middle of the screen. If we were to put this example as it is now onto https://bevyengine.org/examples/, it would up very large size because it maintains the square aspect ratio. There's no issue with the way |
Since the bounds are -1.0 to 1.0 for both dimensions on the gamepad stick, I feel a square aspect ratio is most appropriate. I'll set the window to a square size of the minimum dimension, keeping within the window's
Thanks. |
I mean to say that the bounds can / possibly should be completely independent of the window size. Just show a 200x200 (or whatever) box in the middle of the window. The goal being not having any "window stuff" at all in this example. |
Left in setting the window title, though.
I left in setting the window title, but removed my other "window stuff." Set input range box at 300x300 in middle of window. |
Another box below the others to visualize the full bounds would be helpful now. |
I'm not equipped to make changes much beyond what I've done, since I don't have a gamepad. |
Closing in favor of #6074; I think they serve very similar purposes and we should refine the base in that PR <3 |
Objective
(from #3721 writeup by mfdorst)
In pursuit of #3691 I felt that it would be handy to have a way to visualize the gamepad stick input.
Solution
Add an example that shows gamepad stick input.
Rebase of #3721
See that for all comments.