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

Method on_trigger

src/premade.rs:23–25  ·  view source on GitHub ↗
(&mut self, output: &mut dyn USBKeyOut)

Source from the content-addressed store, hash-verified

21
22impl Action for ActionToggleHandler {
23 fn on_trigger(&mut self, output: &mut dyn USBKeyOut) {
24 output.state().toggle_handler(self.id);
25 }
26}
27
28/// Toggles a handler on and off when a key is pressed

Callers

nothing calls this directly

Calls 3

toggle_handlerMethod · 0.80
stateMethod · 0.80
do_abortMethod · 0.80

Tested by

no test coverage detected