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(
buttons: [
// Row 1
Key(Escape),
Key(Mute),
Key(VolumeDown),
Key(VolumeUp),
Key(F1),
Key(F4),
Key(F7),
Key(F10),
None,
// Row 2
Mod(LAlt),
Mod(LMod),
Mod(LShift),
Mod(LCtrl),
Key(F2),
Key(F5),
Key(F8),
Key(F11),
None,
// Row 3
None,
None,
None,
None,
Key(F3),
Key(F6),
Key(F9),
Key(F12),
None,
// Thumbpad

View File

@ -137,7 +137,7 @@ async fn play_shader(state: &'static State, shader: &impl Shader) {
(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));

View File

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

View File

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