Crate egui_hotkey

Source
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§

BindVariant
Variant for binding. This can be either egui::PointerButton or egui::Key.

Traits§

HotkeyBinding
This Trait defines types that can be used as hotkey’s target.