add todos

This commit is contained in:
mehbark 2025-12-30 12:26:55 -05:00
parent 9d3c6c2495
commit 885eb88f66

View file

@ -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);