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

Method set_mode

perro_source/api_modules/perro_input_api/src/window.rs:312–318  ·  view source on GitHub ↗
(&self, mode: MouseMode)

Source from the content-addressed store, hash-verified

310impl<'ipt, IP: InputAPI + ?Sized> KeyModule<'ipt, IP> {
311 /// Create a key module around an input API borrow.
312 pub fn new(ipt: &'ipt IP) -> Self {
313 Self { ipt }
314 }
315
316 /// Return `true` while the key is held.
317 #[inline]
318 pub fn down(&self, key: KeyCode) -> bool {
319 self.ipt.keyboard().is_key_down(key)
320 }
321

Callers 5

showMethod · 0.45
hideMethod · 0.45
captureMethod · 0.45
confineMethod · 0.45
confine_hiddenMethod · 0.45

Calls 2

command_bufferMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected