device_query

Build Status

A simple library to query mouse and keyboard inputs on demand without a window. Will work in Windows and Linux.

```Rust use device_query::{DeviceQuery, DeviceState, MouseState, Keycode};

let devicestate = DeviceState::new(); let mouse: MouseState = devicestate.getmouse(); println!("Current Mouse Coordinates: {:?}", mouse.coords); let keys: Vec = devicestate.get_keys(); println!("Is A pressed? {}", keys.contains(Keycode::A)); ```