|
|
|
|
@ -5,8 +5,8 @@
|
|
|
|
|
pub use crate::Pedal;
|
|
|
|
|
use evdev::{EventType, InputEvent, Key};
|
|
|
|
|
|
|
|
|
|
/// Repeatedly press the key with given intervals
|
|
|
|
|
/// and send these keypresses into transmit channel
|
|
|
|
|
/// Press and release the key with given intervals
|
|
|
|
|
/// then send these keypresses into transmit channel
|
|
|
|
|
/// mash! (key to press,
|
|
|
|
|
/// down time(while pressed),
|
|
|
|
|
/// up time(between presses),
|
|
|
|
|
@ -91,6 +91,7 @@ pub fn pedals() -> Vec<Pedal> {
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// Returns a vector of currently requred for pedals virtual buttons
|
|
|
|
|
pub fn buttons() -> Vec<evdev::Key> {
|
|
|
|
|
vec![
|
|
|
|
|
Key::KEY_F,
|
|
|
|
|
|