Res<ButtonInput<MouseButton>>
is cleared when hovering a bevy_ui
interactable.
#672
Labels
bug
Something isn't working
Version
0.16
Operating system & version
Macos
What you did
Have an app with
InputManagerPlugin
and a normalbevy_ui
button.Hover over the button, left click, and release.
Expand Code
What you expected to happen
(This is the output when the button is not hovered)
What actually happened
Res<ButtonInput<MouseButton>>
's change detection.just_released
andjust_released
are neverLeft
at any point.ButtonInput
on purpose, yetpressed
occasionally does have a value.Additional information
I got here while debugging an app that uses both
leafwing-input-manager
andbevy-alt-ui-navigation-lite
.bevy-alt-ui-navigation-lite
uses some convoluted logic andRes<ButtonInput<MouseButton>>
to determine whether a nav or focus event should be sent when either hovering or clicking. After upgrading to LWIM / Bevy 0.15, this no longer works.I think that in my case, I can just disable
leafwing-input-manager
'sui
feature. But I'm opening this because at the very least, the change detection thing seems like a potential LWIM bug.The text was updated successfully, but these errors were encountered: