Skip to content

Commit

Permalink
Make TouchInput serializable
Browse files Browse the repository at this point in the history
  • Loading branch information
emersonmx committed Oct 6, 2022
1 parent 6b75589 commit fa19f26
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/bevy_input/src/touch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ use bevy_utils::HashMap;
/// This event is the translated version of the `WindowEvent::Touch` from the `winit` crate.
/// It is available to the end user and can be used for game logic.
#[derive(Debug, Clone, Copy, PartialEq)]
#[cfg_attr(feature = "serialize", derive(serde::Serialize, serde::Deserialize))]
pub struct TouchInput {
/// The phase of the touch input.
pub phase: TouchPhase,
Expand Down

0 comments on commit fa19f26

Please sign in to comment.