emoon / rust_minifb

Cross platfrom window and framebuffer crate for Rust
MIT License
1.04k stars 97 forks source link

key_handler: add a callback for key events #243

Closed xobs closed 2 years ago

xobs commented 3 years ago

Add a callback for key events. This includes complete events such as Shift, not just text events.

A default handler is provided for backwards compatibility.

emoon commented 2 years ago

Thanks!