#egui #hotkey #binding #serde #key #bind-variant #implementes

egui_hotkey

Simple hotkey library for egui

3 unstable releases

0.2.0 Aug 21, 2022
0.1.1 May 23, 2022
0.1.0 May 23, 2022

#600 in GUI

Download history 5/week @ 2023-12-11 3/week @ 2023-12-18 2/week @ 2023-12-25 1/week @ 2024-01-08 7/week @ 2024-02-12 17/week @ 2024-02-19 23/week @ 2024-02-26 23/week @ 2024-03-04 38/week @ 2024-03-11 41/week @ 2024-03-18 19/week @ 2024-03-25

123 downloads per month

MIT license

18KB
370 lines

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.

Dependencies

~4–10MB
~69K SLoC