MCPcopy Create free account
hub / github.com/algoscienceacademy/RustUI / update

Method update

src/gesture/mod.rs:37–48  ·  view source on GitHub ↗
(&mut self, delta_time: Duration)

Source from the content-addressed store, hash-verified

35 }
36
37 pub fn update(&mut self, delta_time: Duration) {
38 // Update gesture timeouts
39 if self.tap_timeout > Duration::from_millis(0) {
40 self.tap_timeout = self.tap_timeout.saturating_sub(delta_time);
41 }
42 if self.long_press_timeout > Duration::from_millis(0) {
43 self.long_press_timeout = self.long_press_timeout.saturating_sub(delta_time);
44 }
45 if self.double_tap_timeout > Duration::from_millis(0) {
46 self.double_tap_timeout = self.double_tap_timeout.saturating_sub(delta_time);
47 }
48 }
49}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected