toggle a handler on activate do noting on deactivate probably only usefull with PressReleaseMacro used by toggle_handler()
| 10 | /// probably only usefull with PressReleaseMacro |
| 11 | /// used by toggle_handler() |
| 12 | pub struct ActionToggleHandler { |
| 13 | pub id: HandlerID, |
| 14 | } |
| 15 | impl OnOff for ActionToggleHandler { |
| 16 | fn on_activate(&mut self, output: &mut dyn USBKeyOut) { |
| 17 | output.state().toggle_handler(self.id); |
nothing calls this directly
no outgoing calls
no test coverage detected