1 unstable release
Uses new Rust 2024
new 0.16.0-rc.1 | Mar 18, 2025 |
---|
#2765 in Game dev
295 downloads per month
6MB
101K
SLoC
Bevy Input Focus
lib.rs
:
A UI-centric focus system for Bevy.
This crate provides a system for managing input focus in Bevy applications, including:
InputFocus
, a resource for tracking which entity has input focus.- Methods for getting and setting input focus via
InputFocus
andIsFocusedHelper
. - A generic
FocusedInput
event for input events which bubble up from the focused entity. - Various navigation frameworks for moving input focus between entities based on user input, such as
tab_navigation
anddirectional_navigation
.
This crate does not provide any integration with UI widgets: this is the responsibility of the widget crate,
which should depend on bevy_input_focus
.
Dependencies
~11–22MB
~398K SLoC