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

Method pressed

perro_source/api_modules/perro_input_api/src/window.rs:192–194  ·  view source on GitHub ↗
(&self, name: &str)

Source from the content-addressed store, hash-verified

190 /// Return `true` when any binding for the named action is pressed this frame.
191 #[inline]
192 pub fn pressed(&self, name: &str) -> bool {
193 self.pressed_hash(action_hash(name))
194 }
195
196 /// Return `true` when any binding for the named action is released this frame.
197 #[inline]

Callers

nothing calls this directly

Calls 6

action_hashFunction · 0.85
keyboardMethod · 0.80
mouseMethod · 0.80
pressed_hashMethod · 0.45
is_key_pressedMethod · 0.45
is_button_pressedMethod · 0.45

Tested by

no test coverage detected