From 376f2547b643868e81af2abb5c3237165a3aea5e Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Mon, 19 Feb 2024 22:17:14 +0100 Subject: [PATCH] Changed key layout --- rp2040/src/layout.rs | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/rp2040/src/layout.rs b/rp2040/src/layout.rs index 27e8680..c3f72f8 100644 --- a/rp2040/src/layout.rs +++ b/rp2040/src/layout.rs @@ -36,8 +36,8 @@ use usbd_human_interface_device::page::Keyboard; /// This means that RightAlt is only available on layer 1 keys. pub const FN_BUTTONS: [u8; 3] = [40, 43, 44]; -/// GUI (Windows) buttons [index, layer] -pub const GUI_LOCK_BUTTON: [u8; 2] = [7, 2]; +/// Sticky button [index, layer] +pub const STICKY_BUTTON: [u8; 2] = [7, 2]; /// Button map to HID key (three Function layers) pub const MAP: [[Keyboard; NUMBER_OF_KEYS]; 3] = [ @@ -151,21 +151,21 @@ pub const MAP: [[Keyboard; NUMBER_OF_KEYS]; 3] = [ // Function layer 2 // HID Key // Button Index // ----------------------------------------- - Keyboard::F11, // 0 - Keyboard::F12, // 1 - Keyboard::F13, // 2 - Keyboard::F14, // 3 - Keyboard::F15, // 4 - Keyboard::F16, // 5 + Keyboard::NoEventIndicated, // 0 + Keyboard::F11, // 1 + Keyboard::F12, // 2 + Keyboard::F13, // 3 + Keyboard::F14, // 4 + Keyboard::NoEventIndicated, // 5 Keyboard::Grave, // 6 ยง - Keyboard::NoEventIndicated, // 7 GUI lock + Keyboard::NoEventIndicated, // 7 STICKY lock Keyboard::LeftGUI, // 8 Keyboard::NoEventIndicated, // 9 Keyboard::CapsLock, // 10 Keyboard::DeleteBackspace, // 11 Keyboard::LeftControl, // 12 - Keyboard::NoEventIndicated, // 13 - Keyboard::NoEventIndicated, // 14 + Keyboard::F15, // 13 + Keyboard::F16, // 14 Keyboard::F17, // 15 Keyboard::F18, // 16 Keyboard::F19, // 17