osynic_pad 0.1.0

A gamepad -> keyboard mapper for the Osynic
Documentation
1
2
3
4
5
6
7
8
9
10
use enigo::*;
use std::{thread, time::Duration};

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let mut enigo = Enigo::new(&Settings::default())?;
    loop {
        enigo.button(Button::Left, Direction::Click)?;
        thread::sleep(Duration::from_secs(2));
    }
}