emoon / rust_minifb

Cross platfrom window and framebuffer crate for Rust
MIT License
1k stars 95 forks source link

inputcallback: add a callback for key events #271

Closed xobs closed 2 years ago

xobs commented 2 years ago

Add a callback for key events. This includes all events such as Shift, not just text events. This allows for getting more complete information on keys as they're pressed.

An empty default handler is provided for backwards compatibility.

emoon commented 2 years ago

Thanks!