Expand description
§egui_hotkey
Simple hotkey library for egui
§Installation
[dependencies]
egui_hotkey = "0.2.0"
§Example
use egui::Key;
let mut key = Key::N;
if Hotkey::new(&mut key).ui(ui).changed() {
println!("Rebinded!");
}
§Features
serde
- Implementes serde::Serialize
, serde::Deserialize
for BindVariant
& Binding
.
Structs§
- Binding
- Binding to a variant that also stores the
egui::Modifiers
. - Hotkey
- The hotkey widget.
Enums§
- Bind
Variant - Variant for binding. This can be either
egui::PointerButton
oregui::Key
.
Traits§
- Hotkey
Binding - This Trait defines types that can be used as hotkey’s target.