pub fn toggle_handler(
    trigger: impl AcceptsKeycode,
    id: HandlerID,
) -> Box<PressReleaseMacro<ActionToggleHandler>> {
    Box::new(PressReleaseMacro::new(
        trigger.to_u32(),
        ActionToggleHandler { id },
    ))
}
/// Toggles a handler on and off when a key is pressed
Toggles a handler on and off when a key is pressed
Toggles a handler on and off when a key is pressed
pub fn toggle_handler(
    trigger: impl AcceptsKeycode,
    id: HandlerID,
) -> Box<PressReleaseMacro<ActionToggleHandler>> {
    Box::new(PressReleaseMacro::new(
        trigger.to_u32(),
        ActionToggleHandler { id },
    ))
}
pub fn toggle_handler ( trigger : impl AcceptsKeycode , id : HandlerID , ) -> Box < PressReleaseMacro < ActionToggleHandler > > { Box :: new ( PressReleaseMacro :: new ( trigger . to_u32 ( ) , ActionToggleHandler { id } , ) ) }
Toggles a handler on and off when a key is pressed
Toggles a handler on and off when a key is pressed
trigger
impl AcceptsKeycode
id
HandlerID