bevy/crates/bevy_input_focus
Alice Cecile df7aa445e9
Remove SetInputFocus helper trait (#16888)
# Objective

The `SetInputFocus` trait is not very useful: we're just setting a
resource's value.

This is a very common and simple pattern, so we should expose it
directly to users rather than creating confusing indirection.

## Solution

Remove the `SetInputFocus` trait and migrate existing uses to just
modify the `InputFocus` resource. The helper methods on that type make
this nicer than before :)

P.S. This is non-breaking as bevy_input_focus has not yet shipped.

## Testing

Code compiles! CI will check the existing unit tests.
2024-12-19 00:40:10 +00:00
..
src Remove SetInputFocus helper trait (#16888) 2024-12-19 00:40:10 +00:00
Cargo.toml Tab navigation framework for bevy_input_focus. (#16795) 2024-12-16 23:54:53 +00:00
README.md Add "bevy_input_focus" crate. (#15611) 2024-12-05 18:08:31 +00:00

Bevy Input Focus

License Crates.io Downloads Docs Discord