MCPcopy Create free account
hub / github.com/TyberiusPrime/KeyToKey / new

Method new

src/key_stream.rs:15–23  ·  view source on GitHub ↗
(keycode: u32)

Source from the content-addressed store, hash-verified

13}
14impl Key {
15 pub fn new(keycode: u32) -> Key {
16 Key {
17 keycode,
18 original_keycode: keycode,
19 ms_since_last: 0,
20 running_number: 0,
21 flag: 0,
22 }
23 }
24}
25#[derive(PartialEq, Debug)]
26pub enum Event {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected