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

Method is_key_down

perro_source/api_modules/perro_input_api/src/state.rs:71–73  ·  view source on GitHub ↗
(&self, key: KeyCode)

Source from the content-addressed store, hash-verified

69 /// Return `true` while the key is held.
70 #[inline]
71 pub fn is_key_down(&self, key: KeyCode) -> bool {
72 self.test(&self.down, key)
73 }
74
75 /// Return `true` only on the frame the key changes from up to down.
76 #[inline]

Callers 7

downMethod · 0.45
downMethod · 0.45
ui_text_input_changedMethod · 0.45
text_edit_repeat_keyMethod · 0.45

Calls 1

testMethod · 0.45

Tested by

no test coverage detected