Crates.io | egui_hotkey |
lib.rs | egui_hotkey |
version | 0.2.0 |
source | src |
created_at | 2022-05-23 12:36:45.676753 |
updated_at | 2022-08-21 01:53:43.878775 |
description | Simple hotkey library for egui |
homepage | |
repository | https://github.com/sy1ntexx/egui_hotkey |
max_upload_size | |
id | 591774 |
size | 63,412 |
Simple hotkey library for egui
[dependencies]
egui_hotkey = "0.2.0"
use egui::Key;
let mut key = Key::N;
if Hotkey::new(&mut key).ui(ui).changed() {
println!("Rebinded!");
}
serde
- Implementes serde::Serialize
, serde::Deserialize
for BindVariant
& Binding
.