rog-aura: Cleanup layouts, add gl504_US.toml

This commit is contained in:
Luke D. Jones
2022-07-29 12:07:16 +12:00
parent 03042dd5c3
commit 0ec1574219
6 changed files with 205 additions and 5 deletions

View File

@@ -85,6 +85,14 @@ pub enum Key {
Comma,
Period,
FwdSlash,
Star,
NumPadDel,
NumPadPlus,
NumPadEnter,
NumPadPause,
NumPadPrtSc,
NumPadHome,
NumLock,
Rshift,
RshiftSmall,
Rshift3_1,
@@ -102,9 +110,11 @@ pub enum Key {
Space5_3,
Space5_4,
Space5_5,
Pause,
RAlt,
PrtSc,
RCtrl,
RCtrlLarge,
Up,
Down,
Left,
@@ -214,7 +224,7 @@ impl KeyShape {
}
pub const fn uy(&self) -> f32 {
match self {
Self::Func => 0.8,
Self::Func | Self::RowEndSpacer => 0.8,
Self::FuncBlank => 0.8,
Self::FuncSpacer => 0.8,
Self::Arrow | Self::ArrowBlank | Self::ArrowSpacer => 0.6,
@@ -292,7 +302,7 @@ impl From<Key> for KeyShape {
Key::LCtrlMed => KeyShape::LCtrlMed,
Key::LShift => KeyShape::LShift,
Key::Rshift => KeyShape::RShift,
Key::Rshift | Key::RCtrlLarge => KeyShape::RShift,
Key::RshiftSmall => KeyShape::RshiftSmall,
Key::Rshift3_1 | Key::Rshift3_2 | Key::Rshift3_3 => KeyShape::RShift3,
@@ -301,6 +311,10 @@ impl From<Key> for KeyShape {
KeyShape::Space5
}
Key::NumPadPause | Key::NumPadPrtSc | Key::NumPadHome | Key::NumPadDel => {
KeyShape::Func
}
Key::NormalBlank => KeyShape::NormalBlank,
Key::NormalSpacer => KeyShape::NormalSpacer,