Add physical_key to keyboard::Event

Co-authored-by: Exidex <16986685+Exidex@users.noreply.github.com>
This commit is contained in:
Héctor Ramón Jiménez 2024-09-13 03:02:07 +02:00
parent 62b4da87d1
commit cbe91d4a7c
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
3 changed files with 795 additions and 2 deletions

View file

@ -1,3 +1,4 @@
use crate::keyboard::key;
use crate::keyboard::{Key, Location, Modifiers};
use crate::SmolStr;
@ -14,6 +15,9 @@ pub enum Event {
/// The key pressed.
key: Key,
/// The physical key pressed.
physical_key: key::Physical,
/// The location of the key.
location: Location,