1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-26 22:53:14 -04:00

eframe: Added App::raw_input_hook allows for the manipulation or filtering of raw input events (#4008)

# What's New

* eframe: Added `App::raw_input_hook` allows for the manipulation or
filtering of raw input events
   A filter applied to raw input before [`Self::update`]
This allows for the manipulation or filtering of input events before
they are processed by egui.
This can be used to exclude specific keyboard shortcuts, mouse events,
etc.
Additionally, it can be used to add custom keyboard or mouse events
generated by a virtual keyboard.
* examples: Added an example to demonstrates how to implement a custom
virtual keyboard.


[eframe-custom-keypad.webm](https://github.com/emilk/egui/assets/1274171/a9dc8e34-2c35-4172-b7ef-41010b794fb8)
This commit is contained in:
Varphone Wong
2024-03-12 18:06:08 +08:00
committed by GitHub
parent 00a399b2f7
commit 827fdefd83
8 changed files with 382 additions and 0 deletions

9
Cargo.lock generated
View File

@@ -1072,6 +1072,15 @@ dependencies = [
"env_logger",
]
[[package]]
name = "custom_keypad"
version = "0.1.0"
dependencies = [
"eframe",
"egui_extras",
"env_logger",
]
[[package]]
name = "custom_plot_manipulation"
version = "0.1.0"