(&mut self, handler: F)
| 28 | } |
| 29 | |
| 30 | pub fn on_gesture<F>(&mut self, handler: F) |
| 31 | where |
| 32 | F: Fn(GestureEvent) + 'static, |
| 33 | { |
| 34 | self.handlers.push(Box::new(handler)); |
| 35 | } |
| 36 | |
| 37 | pub fn update(&mut self, delta_time: Duration) { |
| 38 | // Update gesture timeouts |