Open Trouv opened 1 year ago
Some thoughts on how to break this down:
A
for leafwing ActionLikeA
Okay, after trying for a little bit, that first PR may not be worth it. There's a couple issues with the ActionStateDriver that we need to use to use leafwing w/ UI buttons:
ActionStateDriver { action: LevelSelectAction(LevelSelect::Index(18)), .. }
, the actual action it performs is LevelSelectAction(LevelSelect::default())
I'll just continue to use UiAction
for now. We should still be able to use leafwing for navigation input though
Try out
bevy_ui_navigation
for gamepad support. We may also want to alter the currentUiAction
API to support this, and maybe use the UI features ofleafwing_input_manager
as a replacement.