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

Method action_by_hash

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

Source from the content-addressed store, hash-verified

61
62 #[inline]
63 pub fn action_by_hash(&self, name_hash: u64) -> Option<&InputAction> {
64 self.action_index(name_hash)
65 .map(|index| &self.actions[index])
66 }
67
68 #[inline]
69 pub fn action_index(&self, name_hash: u64) -> Option<usize> {

Callers 4

actionMethod · 0.80
down_hashMethod · 0.80
pressed_hashMethod · 0.80
released_hashMethod · 0.80

Calls 1

action_indexMethod · 0.80

Tested by

no test coverage detected