File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ use bevy_utils::HashMap;
2727/// This event is the translated version of the `WindowEvent::Touch` from the `winit` crate.
2828/// It is available to the end user and can be used for game logic.
2929#[ derive( Debug , Clone , Copy , PartialEq ) ]
30+ #[ cfg_attr( feature = "serialize" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
3031pub struct TouchInput {
3132 /// The phase of the touch input.
3233 pub phase : TouchPhase ,
@@ -43,6 +44,7 @@ pub struct TouchInput {
4344
4445/// A force description of a [`Touch`](crate::touch::Touch) input.
4546#[ derive( Debug , Clone , Copy , PartialEq ) ]
47+ #[ cfg_attr( feature = "serialize" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
4648pub enum ForceTouch {
4749 /// On iOS, the force is calibrated so that the same number corresponds to
4850 /// roughly the same amount of pressure on the screen regardless of the
You can’t perform that action at this time.
0 commit comments