Stick

About

Stick is a Rust library for getting joystick, gamepad, or other controller input.

Features

Getting Started

```rs // jstest.rs use stick::Port;

fn main() { // Connect to all devices. let mut port = Port::new();

// Loop showing state of all devices.
loop {
    // Cycle through all currently plugged in devices.
    for i in 0..port.update() {
        let device = port.get(i);
        println!("{}: {}", i, device);
    }

    std::thread::sleep(std::time::Duration::from_millis(16));
}

} ```

TODO

Links