-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Make GamepadLobby a built-in type #3245
Copy link
Copy link
Closed
Labels
A-InputPlayer input via keyboard, mouse, gamepad, and morePlayer input via keyboard, mouse, gamepad, and moreC-UsabilityA targeted quality-of-life change that makes Bevy easier to useA targeted quality-of-life change that makes Bevy easier to useD-TrivialNice and easy! A great choice to get started with BevyNice and easy! A great choice to get started with Bevy
Description
What problem does this solve or what need does it fill?
As shown in https://github.com/bevyengine/bevy/blob/main/examples/input/gamepad_input.rs, we need to track when gamepads connect.
The GamepadLobby shown there is a common and useful abstraction: external crates should be able to coordinate around its existence (and end users shouldn't have to copy boilerplate from examples).
What solution would you like?
Make GamepadLobby a built-in Bevy type and export it.
Add connection_system from that example to CoreStage::PreUpdate as part of the appropriate plugin.
Update the examples to use this new type.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-InputPlayer input via keyboard, mouse, gamepad, and morePlayer input via keyboard, mouse, gamepad, and moreC-UsabilityA targeted quality-of-life change that makes Bevy easier to useA targeted quality-of-life change that makes Bevy easier to useD-TrivialNice and easy! A great choice to get started with BevyNice and easy! A great choice to get started with Bevy