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

Method is_key_pressed

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

Source from the content-addressed store, hash-verified

75 /// Return `true` only on the frame the key changes from up to down.
76 #[inline]
77 pub fn is_key_pressed(&self, key: KeyCode) -> bool {
78 self.test(&self.pressed, key)
79 }
80
81 /// Return `true` only on the frame the key changes from down to up.
82 #[inline]

Callers 10

pressedMethod · 0.45
pressedMethod · 0.45
ui_nav_input_changedMethod · 0.45
ui_text_input_changedMethod · 0.45
text_edit_repeat_keyMethod · 0.45
ui_action_pressedMethod · 0.45

Calls 1

testMethod · 0.45

Tested by

no test coverage detected