Draft time-travel debugging feature
This commit is contained in:
parent
388a419ed5
commit
d5d4479a53
20 changed files with 330 additions and 63 deletions
|
|
@ -23,7 +23,7 @@ struct Multitouch {
|
|||
fingers: HashMap<touch::Finger, Point>,
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Clone)]
|
||||
enum Message {
|
||||
FingerPressed { id: touch::Finger, position: Point },
|
||||
FingerLifted { id: touch::Finger },
|
||||
|
|
|
|||
|
|
@ -105,6 +105,10 @@ impl State {
|
|||
}
|
||||
|
||||
pub fn update(&mut self, now: Instant) {
|
||||
if self.start > now {
|
||||
self.start = now;
|
||||
}
|
||||
|
||||
self.now = now;
|
||||
self.system_cache.clear();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ publish = false
|
|||
|
||||
[dependencies]
|
||||
iced.workspace = true
|
||||
iced.features = ["tokio", "debug"]
|
||||
iced.features = ["tokio", "debug", "time-travel"]
|
||||
|
||||
serde = { version = "1.0", features = ["derive"] }
|
||||
serde_json = "1.0"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue