gilrs-core 0.6.8

Minimal event-based abstraction for working with gamepads
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use gilrs_core::Gilrs;

fn main() {
    env_logger::init();

    let mut gilrs = Gilrs::new().unwrap();
    loop {
        while let Some(ev) = gilrs.next_event_blocking(None) {
            println!("{:0x?}", ev);
        }
    }
}