Add physical_key to keyboard::Event
Co-authored-by: Exidex <16986685+Exidex@users.noreply.github.com>
This commit is contained in:
parent
62b4da87d1
commit
cbe91d4a7c
3 changed files with 795 additions and 2 deletions
|
|
@ -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,
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue