Changed key layout

This commit is contained in:
Christoffer Martinsson 2024-02-19 22:17:14 +01:00
parent e332b0dc5e
commit 376f2547b6

View File

@ -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