#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

#661 in GUI

Download history 46/week @ 2024-07-26 26/week @ 2024-08-02 13/week @ 2024-08-09 23/week @ 2024-08-16 10/week @ 2024-08-23 9/week @ 2024-08-30 17/week @ 2024-09-06 30/week @ 2024-09-13 28/week @ 2024-09-20 22/week @ 2024-09-27 20/week @ 2024-10-04 20/week @ 2024-10-11 17/week @ 2024-10-18 14/week @ 2024-10-25 28/week @ 2024-11-01

81 downloads per month
Used in phoenix_gui

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

~3.5–8.5MB
~76K SLoC