Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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_state
Method · 0.45
is_button_down
Method · 0.45
is_button_pressed
Method · 0.45
is_button_released
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected