add todos
This commit is contained in:
parent
9d3c6c2495
commit
885eb88f66
1 changed files with 6 additions and 1 deletions
|
|
@ -9,6 +9,11 @@ mod timing;
|
|||
use crate::input::Input;
|
||||
use timing::FRAME;
|
||||
|
||||
// TODO: the whole search thing (maybe partially manual)
|
||||
// TODO: better input timing to avoid drops (not hard, perhaps use tokio)
|
||||
// TODO: optimize for ease of execution by seeing what combos are resilient when
|
||||
// position/character/input timings change slightly (ease of execution score perhaps)
|
||||
|
||||
fn main() -> Result<(), Box<dyn Error>> {
|
||||
let mut enigo = Enigo::new(&enigo::Settings::default())?;
|
||||
let mut inputs: Vec<Input> = env::args().skip(1).map(|s| s.parse().unwrap()).collect();
|
||||
|
|
@ -16,7 +21,7 @@ fn main() -> Result<(), Box<dyn Error>> {
|
|||
|
||||
for input in inputs.windows(2) {
|
||||
if let [a, b] = input {
|
||||
println!("{:>8}", format!("{b}"));
|
||||
println!("{b}");
|
||||
a.release(&mut enigo)?;
|
||||
b.press(&mut enigo)?;
|
||||
thread::sleep(FRAME * b.held_frames);
|
||||
|
|
|
|||
Loading…
Reference in a new issue