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

Method action_index

perro_source/api_modules/perro_input_api/src/input_map.rs:69–74  ·  view source on GitHub ↗
(&self, name_hash: u64)

Source from the content-addressed store, hash-verified

67
68 #[inline]
69 pub fn action_index(&self, name_hash: u64) -> Option<usize> {
70 self.action_slots
71 .binary_search_by_key(&name_hash, |(hash, _)| *hash)
72 .ok()
73 .map(|slot| self.action_slots[slot].1)
74 }
75
76 #[inline]
77 pub fn action_count(&self) -> usize {

Callers 4

is_action_down_hashMethod · 0.80
action_by_hashMethod · 0.80

Calls 1

okMethod · 0.80

Tested by

no test coverage detected