Remap layer 2,0 slightly.

Add arrow keys and move F-keys
This commit is contained in:
2024-07-03 14:09:44 +02:00
parent a066b3c5dc
commit e730fb9ec7
4 changed files with 38 additions and 38 deletions

View File

@ -61,24 +61,24 @@
Layer( Layer(
buttons: [ buttons: [
// Row 1 // Row 1
Key(Escape), Key(F1),
Key(Mute), Key(F4),
Key(VolumeDown), Key(F7),
Key(VolumeUp), Key(F10),
None, None,
// Row 2 // Row 2
Mod(LAlt), Key(F2),
Mod(LMod), Key(F5),
Mod(LShift), Key(F8),
Mod(LCtrl), Key(F11),
None, None,
// Row 3 // Row 3
None, Key(F3),
None, Key(F6),
None, Key(F9),
None, Key(F12),
None, None,
// Thumbpad // Thumbpad

View File

@ -137,7 +137,7 @@ async fn play_shader(state: &'static State, shader: &impl Shader) {
(4, 4), (4, 4),
]; ];
const BRIGHTNESS: f32 = 0.15; const BRIGHTNESS: f32 = 1.00;
let switch_coords = SWITCH_COORDS.map(|(x, y)| (f32::from(x) / 4.0, f32::from(y) / 4.0)); let switch_coords = SWITCH_COORDS.map(|(x, y)| (f32::from(x) / 4.0, f32::from(y) / 4.0));

View File

@ -115,19 +115,19 @@ pub enum Key {
PageUp = 0x4B, PageUp = 0x4B,
/// Keyboard Delete Forward /// Keyboard Delete Forward
Delete = 0x4C, Delete = 0x4C,
/// KeyboardEnd7 /// Keyboard End
End = 0x4D, End = 0x4D,
/// Keyboard PageDown7 /// Keyboard PageDown
PageDown7 = 0x4E, PageDown = 0x4E,
/// Keyboard RightArrow7 /// Keyboard RightArrow
RightArrow7 = 0x4F, RightArrow = 0x4F,
/// Keyboard LeftArrow7 /// Keyboard LeftArrow
LeftArrow7 = 0x50, LeftArrow = 0x50,
/// Keyboard DownArrow7 /// Keyboard DownArrow
DownArrow7 = 0x51, DownArrow = 0x51,
/// Keyboard UpArrow7 /// Keyboard UpArrow
UpArrow7 = 0x52, UpArrow = 0x52,
/// Keypad Num Lock and Clear6 /// Keypad Num Lock and Clear
KeypadNumLock = 0x53, KeypadNumLock = 0x53,
/// Keypad / /// Keypad /
KeypadSlash = 0x54, KeypadSlash = 0x54,

View File

@ -62,24 +62,24 @@
Layer( Layer(
buttons: [ buttons: [
// Row 1 // Row 1
Key(F1), None,
Key(F4), Key(Mute),
Key(F7), Key(VolumeDown),
Key(F10), Key(VolumeUp),
Layer(Move, Down, 1), Layer(Move, Down, 1),
// Row 2 // Row 2
Key(F2), Key(LeftArrow),
ModTap(F5, RCtrl), Key(DownArrow),
ModTap(F8, RShift), Key(UpArrow),
ModTap(F11, RMod), Key(RightArrow),
Mod(RAlt), None,
// Row 3 // Row 3
Key(F3), Key(Home),
Key(F6), Key(PageDown),
Key(F9), Key(PageUp),
Key(F12), Key(End),
None, None,
// Thumbpad // Thumbpad