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

Method on_activate

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

Source from the content-addressed store, hash-verified

14}
15impl OnOff for ActionToggleHandler {
16 fn on_activate(&mut self, output: &mut dyn USBKeyOut) {
17 output.state().toggle_handler(self.id);
18 }
19 fn on_deactivate(&mut self, _output: &mut dyn USBKeyOut) {}
20}
21

Callers 3

process_keysMethod · 0.45
process_keysMethod · 0.45
process_keysMethod · 0.45

Calls 6

toggle_handlerMethod · 0.80
stateMethod · 0.80
enable_handlerMethod · 0.80
debugMethod · 0.80
disable_handlerMethod · 0.80
do_abortMethod · 0.80

Tested by

no test coverage detected