File tree 1 file changed +2
-0
lines changed
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;
27
27
/// This event is the translated version of the `WindowEvent::Touch` from the `winit` crate.
28
28
/// It is available to the end user and can be used for game logic.
29
29
#[ derive( Debug , Clone , Copy , PartialEq ) ]
30
+ #[ cfg_attr( feature = "serialize" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
30
31
pub struct TouchInput {
31
32
/// The phase of the touch input.
32
33
pub phase : TouchPhase ,
@@ -43,6 +44,7 @@ pub struct TouchInput {
43
44
44
45
/// A force description of a [`Touch`](crate::touch::Touch) input.
45
46
#[ derive( Debug , Clone , Copy , PartialEq ) ]
47
+ #[ cfg_attr( feature = "serialize" , derive( serde:: Serialize , serde:: Deserialize ) ) ]
46
48
pub enum ForceTouch {
47
49
/// On iOS, the force is calibrated so that the same number corresponds to
48
50
/// roughly the same amount of pressure on the screen regardless of the
You can’t perform that action at this time.
0 commit comments