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

Method as_index

perro_source/api_modules/perro_input_api/src/joycon.rs:52–54  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

50
51 #[inline]
52 pub fn as_index(self) -> usize {
53 self as usize
54 }
55
56 #[inline]
57 pub fn from_name(name: &str) -> Option<Self> {

Callers 10

set_key_stateMethod · 0.45
testMethod · 0.45
set_button_stateMethod · 0.45
testMethod · 0.45
actions_for_keyMethod · 0.45
actions_for_gamepadMethod · 0.45
actions_for_joyconMethod · 0.45
rebuild_indexesMethod · 0.45
apply_buttonsFunction · 0.45
set_button_bitFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected