-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
eframe: Added App::raw_input_hook
allows for the manipulation or filtering of raw input events
#4008
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
varphone
force-pushed
the
feature/custom-keypad
branch
5 times, most recently
from
February 11, 2024 04:14
cffa313
to
4a2a3b7
Compare
emilk
approved these changes
Feb 16, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool example!
emilk
reviewed
Feb 16, 2024
…tion or filtering of raw input events
varphone
force-pushed
the
feature/custom-keypad
branch
from
March 8, 2024 14:48
4a2a3b7
to
25d5205
Compare
varphone
changed the title
eframe: Added
eframe: Added Mar 8, 2024
App::filter_raw_input_inplace
allows for the manipulation or filtering of raw input eventsApp::raw_input_hook
allows for the manipulation or filtering of raw input events
emilk
pushed a commit
that referenced
this pull request
Jun 18, 2024
## What's new * Extends @varphone's excellent `raw_input_hook` idea from #4008 to `web/app_runner`. ## Details Debugging this locally after my app's `raw_input_hook` wasn't being called, I realized it's not in the code path of eframe's web runner, only the native integration. Below is a toy example running on the web. https://github.com/emilk/egui/assets/8173478/d470b7e6-d393-4ead-9745-3aafc72ae6bc
hacknus
pushed a commit
to hacknus/egui
that referenced
this pull request
Oct 30, 2024
…ltering of raw input events (emilk#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)
hacknus
pushed a commit
to hacknus/egui
that referenced
this pull request
Oct 30, 2024
## What's new * Extends @varphone's excellent `raw_input_hook` idea from emilk#4008 to `web/app_runner`. ## Details Debugging this locally after my app's `raw_input_hook` wasn't being called, I realized it's not in the code path of eframe's web runner, only the native integration. Below is a toy example running on the web. https://github.com/emilk/egui/assets/8173478/d470b7e6-d393-4ead-9745-3aafc72ae6bc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What's New
App::raw_input_hook
allows for the manipulation or filtering of raw input eventsA 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.
eframe-custom-keypad.webm