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

Method bit

perro_source/api_modules/perro_input_api/src/mouse_button.rs:15–17  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

13
14 #[inline]
15 pub const fn bit(self) -> u8 {
16 1u8 << (self as u8)
17 }
18
19 #[inline]
20 pub fn from_name(name: &str) -> Option<Self> {

Callers 4

set_button_stateMethod · 0.45
is_button_downMethod · 0.45
is_button_pressedMethod · 0.45
is_button_releasedMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected