(&mut self, delta_time: Duration)
| 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected