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

Method is_button_released

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

Source from the content-addressed store, hash-verified

261 /// Return `true` only on the frame the button changes from down to up.
262 #[inline]
263 pub fn is_button_released(&self, button: MouseButton) -> bool {
264 self.released & button.bit() != 0
265 }
266
267 /// Return accumulated relative movement in pixels for this frame.
268 #[inline]

Callers 5

releasedMethod · 0.45
is_mouse_releasedMethod · 0.45
releasedMethod · 0.45
ui_action_releasedMethod · 0.45

Calls 1

bitMethod · 0.45

Tested by

no test coverage detected