From cb447e33912e6de85a3351776b635eccfda3e4ec Mon Sep 17 00:00:00 2001 From: Chris Date: Mon, 3 Apr 2023 12:55:52 +1000 Subject: [PATCH] Correcting Razer Blackwidow X TE layout * As per the changes in 2bfa6e87 to the KLM changes made in 9cd278c3 need to be reverted to correct the layout. --- Controllers/RazerController/RazerDevices.cpp | 68 ++++++++++++++------ 1 file changed, 47 insertions(+), 21 deletions(-) diff --git a/Controllers/RazerController/RazerDevices.cpp b/Controllers/RazerController/RazerDevices.cpp index ae6a00f3..506f5340 100644 --- a/Controllers/RazerController/RazerDevices.cpp +++ b/Controllers/RazerController/RazerDevices.cpp @@ -52,6 +52,12 @@ keyboard_keymap_overlay_values razer_blackwidow_layout | Zone, Row, Column, Index, Key | \*---------------------------------------------------------------------*/ { 0, 5, 11, 0, "Logo", }, // Swap RGT_ALT for 'Logo' + }, + { + /*---------------------------------------------------------------------*\ + | Remove Keys | + | Zone, Row, Column, Index, Key | + \*---------------------------------------------------------------------*/ } }; @@ -61,16 +67,6 @@ keyboard_keymap_overlay_values razer_blackwidow_x_chroma_te_layout { { /* ANSI Value set not used */ }, { - { - KEYBOARD_LAYOUT_ANSI_QWERTY, - { - /*---------------------------------------------------------------------*\ - | Swap Keys | - | Zone, Row, Column, Index, Key | - \*---------------------------------------------------------------------*/ - { 0, 4, 1, 0, KEY_EN_UNUSED, }, // Move 'Z' 1 right (Account for ISO key) - } - }, /* Add more regional layout fixes here */ } }, @@ -79,25 +75,25 @@ keyboard_keymap_overlay_values razer_blackwidow_x_chroma_te_layout | Insert Keys | | Zone, Row, Column, Index, Key | \*---------------------------------------------------------------------*/ - { 0, 0, 0, 0, KEY_EN_UNUSED, }, // Move 'Esc' 1 right - { 0, 0, 2, 0, KEY_EN_UNUSED, }, // Move 'F1' 1 right (Shifts row) - { 0, 0, 20, 0, "Logo", }, // Insert 'Logo' key + { 0, 0, 0, 0, KEY_EN_UNUSED, }, // Move 'Esc' 1 right (Shifts row) { 0, 1, 0, 0, KEY_EN_UNUSED, }, // Move Backtick 1 right (Shifts row) { 0, 2, 0, 0, KEY_EN_UNUSED, }, // Move Tab 1 right (Shifts row) - { 0, 3, 0, 0, KEY_EN_UNUSED, }, // Move Caps 1 right (Shifts most of row) - { 0, 3, 13, 0, KEY_EN_UNUSED, }, // Move Enter 1 right - { 0, 4, 0, 0, KEY_EN_UNUSED, }, // Move LFT_SHFT 1 right (Shifts most of row) - { 0, 4, 13, 0, KEY_EN_UNUSED, }, // Move RGT_SHFT 1 right - { 0, 4, 15, 0, KEY_EN_UNUSED, }, // Move ARWUP 1 right - { 0, 5, 0, 0, KEY_EN_UNUSED, }, // Move LFT_CTRL 1 right - { 0, 5, 6, 0, KEY_EN_UNUSED, }, // Move Space 1 right - { 0, 5, 10, 0, KEY_EN_UNUSED, }, // Move RGT_ALT 1 right (Shifts remainder of row) + { 0, 3, 0, 0, KEY_EN_UNUSED, }, // Move Caps 1 right (Shifts row) + { 0, 4, 0, 0, KEY_EN_UNUSED, }, // Move LFT_SHFT 1 right (Shifts row) + { 0, 5, 0, 0, KEY_EN_UNUSED, }, // Move LFT_CTRL 1 right (Shifts row) }, { /*---------------------------------------------------------------------*\ | Swap Keys | | Zone, Row, Column, Index, Key | \*---------------------------------------------------------------------*/ + { 0, 0, 20, 0, "Logo", }, // Insert 'Logo' key + }, + { + /*---------------------------------------------------------------------*\ + | Remove Keys | + | Zone, Row, Column, Index, Key | + \*---------------------------------------------------------------------*/ } }; @@ -163,6 +159,12 @@ keyboard_keymap_overlay_values razer_blade_15_2021_advanced_layout { 0, 5, 14, 0, KEY_EN_RIGHT_ARROW, }, // Swap ARWRGT for ARWLFT { 0, 5, 15, 0, KEY_EN_DOWN_ARROW, }, // Swap ARWDWN for ARWDWN { 0, 5, 16, 0, KEY_EN_UNUSED, }, // Remove ARWRGT + }, + { + /*---------------------------------------------------------------------*\ + | Remove Keys | + | Zone, Row, Column, Index, Key | + \*---------------------------------------------------------------------*/ } }; @@ -240,6 +242,12 @@ keyboard_keymap_overlay_values razer_blade_15_2022_layout { 0, 5, 14, 0, KEY_EN_RIGHT_ARROW, }, // Swap ARWRGT for ARWLFT { 0, 5, 15, 0, KEY_EN_DOWN_ARROW, }, // Swap ARWDWN for ARWDWN { 0, 5, 16, 0, KEY_EN_UNUSED, }, // Remove ARWRGT + }, + { + /*---------------------------------------------------------------------*\ + | Remove Keys | + | Zone, Row, Column, Index, Key | + \*---------------------------------------------------------------------*/ } }; @@ -285,6 +293,12 @@ keyboard_keymap_overlay_values razer_deathstalker_v2_layout | Swap Keys | | Zone, Row, Column, Index, Key | \*---------------------------------------------------------------------*/ + }, + { + /*---------------------------------------------------------------------*\ + | Remove Keys | + | Zone, Row, Column, Index, Key | + \*---------------------------------------------------------------------*/ } }; @@ -329,6 +343,12 @@ keyboard_keymap_overlay_values razer_deathstalker_v2_pro_layout | Swap Keys | | Zone, Row, Column, Index, Key | \*---------------------------------------------------------------------*/ + }, + { + /*---------------------------------------------------------------------*\ + | Remove Keys | + | Zone, Row, Column, Index, Key | + \*---------------------------------------------------------------------*/ } }; @@ -362,6 +382,12 @@ keyboard_keymap_overlay_values razer_huntsman_elite_layout | Swap Keys | | Zone, Row, Column, Index, Key | \*---------------------------------------------------------------------*/ + }, + { + /*---------------------------------------------------------------------*\ + | Remove Keys | + | Zone, Row, Column, Index, Key | + \*---------------------------------------------------------------------*/ } };