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

Class PressCounter

src/test_helpers.rs:122–125  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121#[derive(Debug)]
122pub struct PressCounter {
123 pub down_counter: u8,
124 pub up_counter: u8,
125}
126impl OnOff for Arc<RwLock<PressCounter>> {
127 fn on_activate(&mut self, output: &mut dyn USBKeyOut) {
128 self.write().down_counter += 1;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected