mirror of
https://github.com/emilk/egui.git
synced 2026-06-27 15:13:12 -04:00
# 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)
24 lines
555 B
TOML
24 lines
555 B
TOML
[package]
|
|
name = "custom_keypad"
|
|
version = "0.1.0"
|
|
authors = ["Varphone Wong <varphone@qq.com>"]
|
|
license = "MIT OR Apache-2.0"
|
|
edition = "2021"
|
|
rust-version = "1.72"
|
|
publish = false
|
|
|
|
|
|
[dependencies]
|
|
eframe = { workspace = true, features = [
|
|
"default",
|
|
"__screenshot", # __screenshot is so we can dump a screenshot using EFRAME_SCREENSHOT_TO
|
|
] }
|
|
|
|
# For image support:
|
|
egui_extras = { workspace = true, features = ["default", "image"] }
|
|
|
|
env_logger = { version = "0.10", default-features = false, features = [
|
|
"auto-color",
|
|
"humantime",
|
|
] }
|