MCPcopy Create free account
hub / github.com/PerroEngine/Perro / mode

Method mode

perro_source/api_modules/perro_input_api/src/window.rs:306–308  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

304 /// Return `true` only on the frame the button changes from up to down.
305 #[inline]
306 pub fn pressed(&self, button: MouseButton) -> bool {
307 self.ipt.mouse().is_button_pressed(button)
308 }
309
310 /// Return `true` only on the frame the button changes from down to up.
311 #[inline]

Callers 1

mouse_modeMethod · 0.45

Calls 1

mouseMethod · 0.80

Tested by

no test coverage detected