Implement Serialize and Deserialize for gamepad events #5979
Labels
A-Input
Player input via keyboard, mouse, gamepad, and more
C-Usability
A targeted quality-of-life change that makes Bevy easier to use
D-Trivial
Nice and easy! A great choice to get started with Bevy
What problem does this solve or what need does it fill?
This is useful for input capture and playback of gamepad events, enabling automated testing and advanced input mocking.
What solution would you like?
Derive
Serialize
andDeserialize
forGamepadEvent
,GamepadEventRaw
,Gamepad
,GamepadButtonType
andGamepadAxisType
.What alternative(s) have you considered?
Use Serde's https://serde.rs/remote-derive.html in an external crate.
Additional context
This should also likely be done for
WindowEvent
upstream inwinit
, but that's likely blocked on rust-windowing/winit#1387The text was updated successfully, but these errors were encountered: