MCPcopy Create free account
hub / github.com/CleanCut/rusty_engine / pressed

Method pressed

src/mouse.rs:29–34  ·  view source on GitHub ↗
(&self, mouse_button: MouseButton, mut then: impl FnMut(&MouseState))

Source from the content-addressed store, hash-verified

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(

Callers 4

pressed_anyMethod · 0.45
logicFunction · 0.45
game_logicFunction · 0.45
logicFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected