device_query
A simple library to query mouse and keyboard inputs on demand without a window. Will work in Windows, Linux, and macOS.
use ;
let device_state = new;
let mouse: MouseState = device_state.get_mouse;
println!;
let keys: = device_state.get_keys;
println!;