diff --git a/src/pedals.rs b/src/pedals.rs index 690c975..ae81faf 100644 --- a/src/pedals.rs +++ b/src/pedals.rs @@ -24,33 +24,13 @@ pub fn pedals() -> Vec { key: Key::KEY_KP7, action: Box::new(|tx| mash!(KEY_SPACE, 26, 31, tx)), }, - Pedal { - key: Key::BTN_SIDE, - action: Box::new(|tx| mash!(KEY_SPACE, 26, 31, tx)), - }, - Pedal { - key: Key::BTN_EXTRA, - action: Box::new(|tx| mash!(KEY_F, 24, 33, tx)), - }, Pedal { key: Key::KEY_KP9, action: Box::new(|tx| mash!(KEY_F, 24, 33, tx)), }, - Pedal { - key: Key::BTN_RIGHT, - action: Box::new(|tx| mash!(BTN_LEFT, 19, 26, tx)), - }, Pedal { key: Key::KEY_KP8, - action: Box::new(|tx| { - let code = Key::BTN_LEFT.code(); - let down_event = InputEvent::new(EventType::KEY, code, 1); - let up_event = InputEvent::new(EventType::KEY, code, 0); - tx.send(down_event).unwrap(); - std::thread::sleep(std::time::Duration::from_millis(19)); - tx.send(up_event).unwrap(); - std::thread::sleep(std::time::Duration::from_millis(26)); - }), + action: Box::new(|tx| mash!(BTN_LEFT, 19, 26, tx)), }, ] }