Refactor KeyCode into Key and Location
This commit is contained in:
parent
534c7dd7b0
commit
64d1ce5532
24 changed files with 1277 additions and 461 deletions
12
core/src/keyboard/location.rs
Normal file
12
core/src/keyboard/location.rs
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
/// The location of a key on the keyboard.
|
||||
#[derive(Debug, Clone, Copy, PartialEq, Eq)]
|
||||
pub enum Location {
|
||||
/// The standard group of keys on the keyboard.
|
||||
Standard,
|
||||
/// The left side of the keyboard.
|
||||
Left,
|
||||
/// The right side of the keyboard.
|
||||
Right,
|
||||
/// The numpad of the keyboard.
|
||||
Numpad,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue