2020-04-06 03:19:02 +00:00
|
|
|
[package]
|
|
|
|
name = "bevy_input"
|
2022-08-05 02:03:05 +00:00
|
|
|
version = "0.9.0-dev"
|
2021-10-27 00:12:14 +00:00
|
|
|
edition = "2021"
|
2020-08-10 00:24:27 +00:00
|
|
|
description = "Provides input functionality for Bevy Engine"
|
|
|
|
homepage = "https://bevyengine.org"
|
|
|
|
repository = "https://github.com/bevyengine/bevy"
|
2021-07-23 21:11:51 +00:00
|
|
|
license = "MIT OR Apache-2.0"
|
2020-08-10 00:24:27 +00:00
|
|
|
keywords = ["bevy"]
|
2020-04-06 03:19:02 +00:00
|
|
|
|
2020-08-22 01:13:50 +00:00
|
|
|
[features]
|
|
|
|
default = []
|
|
|
|
serialize = ["serde"]
|
|
|
|
|
2020-04-06 03:19:02 +00:00
|
|
|
[dependencies]
|
2020-08-29 00:08:51 +00:00
|
|
|
# bevy
|
2022-08-05 02:03:05 +00:00
|
|
|
bevy_app = { path = "../bevy_app", version = "0.9.0-dev" }
|
|
|
|
bevy_ecs = { path = "../bevy_ecs", version = "0.9.0-dev" }
|
|
|
|
bevy_math = { path = "../bevy_math", version = "0.9.0-dev" }
|
|
|
|
bevy_utils = { path = "../bevy_utils", version = "0.9.0-dev" }
|
register missing reflect types (#5747)
# Objective
- While generating https://github.com/jakobhellermann/bevy_reflect_ts_type_export/blob/main/generated/types.ts, I noticed that some types that implement `Reflect` did not register themselves
- `Viewport` isn't reflect but can be (there's a TODO)
## Solution
- register all reflected types
- derive `Reflect` for `Viewport`
## Changelog
- more types are not registered in the type registry
- remove `Serialize`, `Deserialize` impls from `Viewport`
I also decided to remove the `Serialize, Deserialize` from the `Viewport`, since they were (AFAIK) only used for reflection, which now is done without serde. So this is technically a breaking change for people who relied on that impl directly.
Personally I don't think that every bevy type should implement `Serialize, Deserialize`, as that would lead to a ton of code generation that mostly isn't necessary because we can do the same with `Reflect`, but if this is deemed controversial I can remove it from this PR.
## Migration Guide
- `KeyCode` now implements `Reflect` not as `reflect_value`, but with proper struct reflection. The `Serialize` and `Deserialize` impls were removed, now that they are no longer required for scene serialization.
2022-08-23 17:41:39 +00:00
|
|
|
bevy_reflect = { path = "../bevy_reflect", version = "0.9.0-dev" }
|
2020-08-29 00:08:51 +00:00
|
|
|
|
|
|
|
# other
|
2020-08-22 01:13:50 +00:00
|
|
|
serde = { version = "1", features = ["derive"], optional = true }
|
2022-10-17 14:38:55 +00:00
|
|
|
thiserror = "1.0"
|