egui/examples/custom_keypad
Emil Ernerfeldt d449cb1d48
On touch screens, press-and-hold equals a secondary click (#4195)
* Closes https://github.com/emilk/egui/issues/3444
* Closes https://github.com/emilk/egui/issues/865

On a touch screen, if you press down on a widget and hold for 0.6
seconds (`MAX_CLICK_DURATION`), it will now trigger a secondary click,
i.e. `Response::secondary_clicked` will be `true`. This means you can
now open context menus on touch screens.
2024-03-20 11:49:17 +01:00
..
src On touch screens, press-and-hold equals a secondary click (#4195) 2024-03-20 11:49:17 +01:00
Cargo.toml eframe: Added `App::raw_input_hook` allows for the manipulation or filtering of raw input events (#4008) 2024-03-12 11:06:08 +01:00
README.md eframe: Added `App::raw_input_hook` allows for the manipulation or filtering of raw input events (#4008) 2024-03-12 11:06:08 +01:00
screenshot.png eframe: Added `App::raw_input_hook` allows for the manipulation or filtering of raw input events (#4008) 2024-03-12 11:06:08 +01:00

README.md

Example showing how to implements a custom keypad.

cargo run -p custom_keypad