1
- #[ derive( Debug , Clone , PartialEq ) ]
1
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
2
2
pub enum InputPacketType {
3
3
ServerHandshakeV3 = 1 ,
4
4
ClientHandshakeV3 = 2 ,
@@ -10,7 +10,7 @@ pub enum InputPacketType {
10
10
FrameV4 = 7 ,
11
11
}
12
12
13
- #[ derive( Debug , Clone , PartialEq ) ]
13
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
14
14
pub struct InputServerHandshake {
15
15
pub min_protocol_version : u32 ,
16
16
pub max_protocol_version : u32 ,
@@ -20,27 +20,27 @@ pub struct InputServerHandshake {
20
20
pub initial_frame_id : u32 ,
21
21
}
22
22
23
- #[ derive( Debug , Clone , PartialEq ) ]
23
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
24
24
pub struct InputClientHandshake {
25
25
pub min_protocol_version : u32 ,
26
26
pub max_protocol_version : u32 ,
27
27
pub maximum_touches : u32 ,
28
28
pub reference_timestamp : u64 ,
29
29
}
30
30
31
- #[ derive( Debug , Clone , PartialEq ) ]
31
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
32
32
pub struct InputFrameAck {
33
33
pub acked_frame_id : u32 ,
34
34
}
35
35
36
- #[ derive( Debug , Clone , PartialEq ) ]
36
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
37
37
pub struct InputFrameV3 {
38
38
pub frame_id : u32 ,
39
39
pub timestamp : i64 ,
40
40
pub frame : FrameV3Data ,
41
41
}
42
42
43
- #[ derive( Debug , Clone , PartialEq ) ]
43
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
44
44
pub struct FrameV3Data {
45
45
pub input_count : u32 ,
46
46
pub unknown : Option < Vec < ( u32 , u32 , u32 ) > > , // length: input_count
@@ -49,26 +49,26 @@ pub struct FrameV3Data {
49
49
pub data_keyboard : Option < KeyboardData > ,
50
50
}
51
51
52
- #[ derive( Debug , Clone , PartialEq ) ]
52
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
53
53
pub struct MouseData { }
54
54
55
- #[ derive( Debug , Clone , PartialEq ) ]
55
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
56
56
pub struct GamepadData { }
57
57
58
- #[ derive( Debug , Clone , PartialEq ) ]
58
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
59
59
pub struct KeyboardData { }
60
60
61
- #[ derive( Debug , Clone , PartialEq ) ]
61
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
62
62
pub struct InputFrameV4 {
63
63
pub frame_id : u32 ,
64
64
pub timestamp : i64 ,
65
65
pub frame_changes : FrameChanges ,
66
66
}
67
67
68
- #[ derive( Debug , Clone , PartialEq ) ]
68
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
69
69
pub struct FrameChanges { }
70
70
71
- #[ derive( Debug , Clone , PartialEq ) ]
71
+ #[ derive( Debug , Clone , PartialEq , Eq ) ]
72
72
pub enum InputPacket {
73
73
ServerHandshake ( InputServerHandshake ) ,
74
74
ClientHandshake ( InputClientHandshake ) ,
0 commit comments