From abff78ad98d7679e5a82387af20b986690d5355d Mon Sep 17 00:00:00 2001 From: Christoffer Martinsson Date: Sun, 16 Jul 2023 15:10:15 +0200 Subject: [PATCH] Updated layout --- rp2040/src/layout.rs | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/rp2040/src/layout.rs b/rp2040/src/layout.rs index 4cd4cfe..27e8680 100644 --- a/rp2040/src/layout.rs +++ b/rp2040/src/layout.rs @@ -36,7 +36,7 @@ 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] +/// GUI (Windows) buttons [index, layer] pub const GUI_LOCK_BUTTON: [u8; 2] = [7, 2]; /// Button map to HID key (three Function layers) @@ -87,7 +87,7 @@ pub const MAP: [[Keyboard; NUMBER_OF_KEYS]; 3] = [ Keyboard::LeftAlt, // 39 Keyboard::NoEventIndicated, // 40 Fn (= will never trigg this layer) Keyboard::Space, // 41 - Keyboard::ReturnEnter, // 42 + Keyboard::Space, // 42 Keyboard::NoEventIndicated, // 43 Fn (= will never trigg this layer) Keyboard::NoEventIndicated, // 44 Fn (= will never trigg this layer) Keyboard::NoEventIndicated, // 45 no button connected @@ -109,7 +109,7 @@ pub const MAP: [[Keyboard; NUMBER_OF_KEYS]; 3] = [ Keyboard::F8, // 8 Keyboard::F9, // 9 Keyboard::F10, // 10 - Keyboard::NoEventIndicated, // 11 + Keyboard::DeleteBackspace, // 11 Keyboard::LeftControl, // 12 Keyboard::Keyboard1, // 13 Keyboard::Keyboard2, // 14 @@ -121,7 +121,7 @@ pub const MAP: [[Keyboard; NUMBER_OF_KEYS]; 3] = [ Keyboard::Keyboard8, // 20 Keyboard::Keyboard9, // 21 Keyboard::Keyboard0, // 22 - Keyboard::NoEventIndicated, // 23 + Keyboard::ReturnEnter, // 23 Keyboard::LeftShift, // 24 Keyboard::Keyboard6, // 25 Keyboard::Keyboard7, // 26 @@ -140,7 +140,7 @@ pub const MAP: [[Keyboard; NUMBER_OF_KEYS]; 3] = [ Keyboard::LeftAlt, // 39 Keyboard::NoEventIndicated, // 40 Fn Keyboard::DeleteBackspace, // 41 - Keyboard::ReturnEnter, // 42 + Keyboard::DeleteBackspace, // 42 Keyboard::NoEventIndicated, // 43 Fn Keyboard::RightAlt, // 44 Fn Keyboard::NoEventIndicated, // 45 no button connected @@ -162,7 +162,7 @@ pub const MAP: [[Keyboard; NUMBER_OF_KEYS]; 3] = [ Keyboard::LeftGUI, // 8 Keyboard::NoEventIndicated, // 9 Keyboard::CapsLock, // 10 - Keyboard::NoEventIndicated, // 11 + Keyboard::DeleteBackspace, // 11 Keyboard::LeftControl, // 12 Keyboard::NoEventIndicated, // 13 Keyboard::NoEventIndicated, // 14 @@ -174,7 +174,7 @@ pub const MAP: [[Keyboard; NUMBER_OF_KEYS]; 3] = [ Keyboard::UpArrow, // 20 Keyboard::RightArrow, // 21 Keyboard::DeleteForward, // 22 - Keyboard::NoEventIndicated, // 23 + Keyboard::ReturnEnter, // 23 Keyboard::LeftShift, // 24 Keyboard::F20, // 25 Keyboard::F21, // 26 @@ -193,7 +193,7 @@ pub const MAP: [[Keyboard; NUMBER_OF_KEYS]; 3] = [ Keyboard::LeftAlt, // 39 Keyboard::NoEventIndicated, // 40 Fn Keyboard::LeftGUI, // 41 - Keyboard::ReturnEnter, // 42 + Keyboard::DeleteBackspace, // 42 Keyboard::NoEventIndicated, // 43 Fn Keyboard::NoEventIndicated, // 44 Fn Keyboard::NoEventIndicated, // 45 no button connected