(&self, mouse_button: MouseButton, mut then: impl FnMut(&MouseState))
| 27 | /// Calls the closure if the mouse button was pressed |
| 28 | #[inline] |
| 29 | pub fn pressed(&self, mouse_button: MouseButton, mut then: impl FnMut(&MouseState)) -> &Self { |
| 30 | if self.0.pressed(mouse_button) { |
| 31 | then(&self.0); |
| 32 | } |
| 33 | self |
| 34 | } |
| 35 | /// Calls the closure if any of the indicated mouse buttons were pressed |
| 36 | #[inline] |
| 37 | pub fn pressed_any( |
no outgoing calls
no test coverage detected