bevy/crates/bevy_input/src
Lee-Orr 42ba9dfaea
Separate state crate (#13216)
# Objective

Extracts the state mechanisms into a new crate called "bevy_state".

This comes with a few goals:

- state wasn't really an inherent machinery of the ecs system, and so
keeping it within bevy_ecs felt forced
- by mixing it in with bevy_ecs, the maintainability of our more robust
state system was significantly compromised

moving state into a new crate makes it easier to encapsulate as it's own
feature, and easier to read and understand since it's no longer a
single, massive file.

## Solution

move the state-related elements from bevy_ecs to a new crate

## Testing

- Did you test these changes? If so, how? all the automated tests
migrated and passed, ran the pre-existing examples without changes to
validate.

---

## Migration Guide

Since bevy_state is now gated behind the `bevy_state` feature, projects
that use state but don't use the `default-features` will need to add
that feature flag.

Since it is no longer part of bevy_ecs, projects that use bevy_ecs
directly will need to manually pull in `bevy_state`, trigger the
StateTransition schedule, and handle any of the elements that bevy_app
currently sets up.

---------

Co-authored-by: Kristoffer Søholm <k.soeholm@gmail.com>
2024-05-09 18:06:05 +00:00
..
axis.rs
button_input.rs Separate state crate (#13216) 2024-05-09 18:06:05 +00:00
common_conditions.rs Fix cyclic dep (#11523) 2024-01-25 17:44:32 +00:00
gamepad.rs Fix uses of "it's" vs "its". (#13033) 2024-04-19 18:17:31 +00:00
keyboard.rs Fix beta lints (#12980) 2024-04-16 02:46:46 +00:00
lib.rs Forbid unsafe in most crates in the engine (#12684) 2024-03-27 03:30:08 +00:00
mouse.rs Fix missing renaming of Input -> ButtonInput (#12096) 2024-02-24 18:41:17 +00:00
touch.rs fix previous_position / previous_force being discarded too early (#12556) 2024-04-01 21:45:47 +00:00
touchpad.rs