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 to a variant that also stores the egui::Modifiers.

The hotkey widget.

Enums

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

Traits

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