MCPcopy Create free account
hub / github.com/explodingcamera/tinywasm / key_down

Method key_down

examples/doom/src/runtime.rs:79–82  ·  view source on GitHub ↗
(&mut self, key: i32)

Source from the content-addressed store, hash-verified

77 }
78
79 pub fn key_down(&mut self, key: i32) -> Result<()> {
80 self.key_down.call(&mut self.store, key)?;
81 Ok(())
82 }
83
84 pub fn key_up(&mut self, key: i32) -> Result<()> {
85 self.key_up.call(&mut self.store, key)?;

Callers 1

window_eventMethod · 0.80

Calls 1

callMethod · 0.80

Tested by

no test coverage detected