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

Method is_button_down

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

Source from the content-addressed store, hash-verified

249 /// Return `true` while the button is held.
250 #[inline]
251 pub fn is_button_down(&self, button: MouseButton) -> bool {
252 self.down & button.bit() != 0
253 }
254
255 /// Return `true` only on the frame the button changes from up to down.
256 #[inline]

Callers 4

downMethod · 0.45
is_mouse_downMethod · 0.45
compute_action_downMethod · 0.45
downMethod · 0.45

Calls 1

bitMethod · 0.45

Tested by

no test coverage detected