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

Class ActionToggleHandler

src/premade.rs:12–14  ·  view source on GitHub ↗

toggle a handler on activate do noting on deactivate probably only usefull with PressReleaseMacro used by toggle_handler()

Source from the content-addressed store, hash-verified

10/// probably only usefull with PressReleaseMacro
11/// used by toggle_handler()
12pub struct ActionToggleHandler {
13 pub id: HandlerID,
14}
15impl OnOff for ActionToggleHandler {
16 fn on_activate(&mut self, output: &mut dyn USBKeyOut) {
17 output.state().toggle_handler(self.id);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected