added delays so commands don't overlap
This commit is contained in:
parent
47d47f0819
commit
686d7b8237
1 changed files with 3 additions and 0 deletions
|
@ -48,6 +48,7 @@ impl Hotkeys {
|
|||
hotkey])
|
||||
.spawn()
|
||||
.expect("next_slide process call failed");
|
||||
std::thread::sleep(std::time::Duration::from_millis(400));
|
||||
} else {
|
||||
println!("pretend linux is sending obs send: {}", hotkey)
|
||||
};
|
||||
|
@ -60,6 +61,7 @@ impl Hotkeys {
|
|||
self.hotkeys["general"]["clicker_forward"].as_str().unwrap()])
|
||||
.spawn()
|
||||
.expect("next_slide process call failed");
|
||||
std::thread::sleep(std::time::Duration::from_millis(200));
|
||||
} else {
|
||||
println!("pretend linux is sending prosenter next: {}", self.hotkeys["general"]["clicker_forward"].as_str().unwrap())
|
||||
};
|
||||
|
@ -72,6 +74,7 @@ impl Hotkeys {
|
|||
self.hotkeys["general"]["clicker_backward"].as_str().unwrap()])
|
||||
.spawn()
|
||||
.expect("next_slide process call failed");
|
||||
std::thread::sleep(std::time::Duration::from_millis(200));
|
||||
} else {
|
||||
println!("pretend linux is sending prosenter next: {}", self.hotkeys["general"]["clicker_backward"].as_str().unwrap())
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue