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

Method is_button_pressed

perro_source/api_modules/perro_input_api/src/state.rs:257–259  ·  view source on GitHub ↗
(&self, button: MouseButton)

Source from the content-addressed store, hash-verified

255 /// Return `true` only on the frame the button changes from up to down.
256 #[inline]
257 pub fn is_button_pressed(&self, button: MouseButton) -> bool {
258 self.pressed & button.bit() != 0
259 }
260
261 /// Return `true` only on the frame the button changes from down to up.
262 #[inline]

Callers 6

pressedMethod · 0.45
is_mouse_pressedMethod · 0.45
pressedMethod · 0.45
ui_action_pressedMethod · 0.45

Calls 1

bitMethod · 0.45

Tested by

no test coverage detected