Add Razer Blade Stealth and Blade Pro (2017) keymaps

This commit is contained in:
Adam Honse 2020-07-24 12:02:16 -05:00
parent 628f423171
commit aa4c41ddf7

View file

@ -243,6 +243,196 @@ static const razer_key blackwidow_chroma_te_keymap[] =
{ 0, 5, 17, "Key: Right Arrow" },
};
#define BLADE_PRO_2017_KEYMAP_SIZE (sizeof(blade_pro_2017_keymap) / sizeof(blade_pro_2017_keymap[0]))
static const razer_key blade_pro_2017_keymap[] =
{
/*---------------------------------------------------------------------*\
| Zone, Row, Column, Key |
\*---------------------------------------------------------------------*/
{ 0, 0, 2, "Key: Escape" },
{ 0, 0, 3, "Key: F1" },
{ 0, 0, 4, "Key: F2" },
{ 0, 0, 5, "Key: F3" },
{ 0, 0, 6, "Key: F4" },
{ 0, 0, 7, "Key: F5" },
{ 0, 0, 8, "Key: F6" },
{ 0, 0, 9, "Key: F7" },
{ 0, 0, 10, "Key: F8" },
{ 0, 0, 11, "Key: F9" },
{ 0, 0, 12, "Key: F10" },
{ 0, 0, 13, "Key: F11" },
{ 0, 0, 14, "Key: F12" },
{ 0, 0, 15, "Key: Insert" },
{ 0, 0, 17, "Key: Delete" },
{ 0, 0, 19, "Key: Media Previous" },
{ 0, 0, 20, "Key: Media Next" },
{ 0, 0, 21, "Key: Media Volume" },
{ 0, 0, 23, "Key: Media Play/Pause" },
{ 0, 0, 24, "Key: Media Mute" },
{ 0, 1, 2, "Key: `" },
{ 0, 1, 3, "Key: 1" },
{ 0, 1, 4, "Key: 2" },
{ 0, 1, 5, "Key: 3" },
{ 0, 1, 6, "Key: 4" },
{ 0, 1, 7, "Key: 5" },
{ 0, 1, 8, "Key: 6" },
{ 0, 1, 9, "Key: 7" },
{ 0, 1, 10, "Key: 8" },
{ 0, 1, 11, "Key: 9" },
{ 0, 1, 12, "Key: 0" },
{ 0, 1, 13, "Key: -" },
{ 0, 1, 14, "Key: =" },
{ 0, 1, 15, "Key: Backspace" },
{ 0, 2, 2, "Key: Tab" },
{ 0, 2, 4, "Key: Q" },
{ 0, 2, 5, "Key: W" },
{ 0, 2, 6, "Key: E" },
{ 0, 2, 7, "Key: R" },
{ 0, 2, 8, "Key: T" },
{ 0, 2, 9, "Key: Y" },
{ 0, 2, 10, "Key: U" },
{ 0, 2, 11, "Key: I" },
{ 0, 2, 12, "Key: O" },
{ 0, 2, 13, "Key: P" },
{ 0, 2, 14, "Key: [" },
{ 0, 2, 15, "Key: ]" },
{ 0, 2, 17, "Key: \\ (ANSI)" },
{ 0, 3, 1, "Key: Caps Lock" },
{ 0, 3, 4, "Key: A" },
{ 0, 3, 5, "Key: S" },
{ 0, 3, 6, "Key: D" },
{ 0, 3, 7, "Key: F" },
{ 0, 3, 8, "Key: G" },
{ 0, 3, 9, "Key: H" },
{ 0, 3, 10, "Key: J" },
{ 0, 3, 11, "Key: K" },
{ 0, 3, 12, "Key: L" },
{ 0, 3, 13, "Key: ;" },
{ 0, 3, 14, "Key: '" },
{ 0, 3, 18, "Key: Enter" },
{ 0, 4, 0, "Key: Left Shift" },
{ 0, 4, 4, "Key: Z" },
{ 0, 4, 5, "Key: X" },
{ 0, 4, 6, "Key: C" },
{ 0, 4, 7, "Key: V" },
{ 0, 4, 8, "Key: B" },
{ 0, 4, 9, "Key: N" },
{ 0, 4, 10, "Key: M" },
{ 0, 4, 11, "Key: ," },
{ 0, 4, 12, "Key: ." },
{ 0, 4, 13, "Key: /" },
{ 0, 4, 14, "Key: Up Arrow" },
{ 0, 4, 18, "Key: Right Shift" },
{ 0, 5, 0, "Key: Left Control" },
{ 0, 5, 2, "Key: Left Fn" },
{ 0, 5, 3, "Key: Left Windows" },
{ 0, 5, 5, "Key: Left Alt" },
{ 0, 5, 7, "Key: Space" },
{ 0, 5, 10, "Key: Right Alt" },
{ 0, 5, 12, "Key: Right Control" },
{ 0, 5, 13, "Key: Left Arrow" },
{ 0, 5, 14, "Key: Down Arrow" },
{ 0, 5, 15, "Key: Right Arrow" },
{ 0, 5, 16, "Key: Right Fn" },
};
#define BLADE_STEALTH_KEYMAP_SIZE (sizeof(blade_stealth_keymap) / sizeof(blade_stealth_keymap[0]))
static const razer_key blade_stealth_keymap[] =
{
/*---------------------------------------------------------------------*\
| Zone, Row, Column, Key |
\*---------------------------------------------------------------------*/
{ 0, 0, 1, "Key: Escape" },
{ 0, 0, 2, "Key: F1" },
{ 0, 0, 3, "Key: F2" },
{ 0, 0, 4, "Key: F3" },
{ 0, 0, 5, "Key: F4" },
{ 0, 0, 6, "Key: F5" },
{ 0, 0, 7, "Key: F6" },
{ 0, 0, 8, "Key: F7" },
{ 0, 0, 9, "Key: F8" },
{ 0, 0, 10, "Key: F9" },
{ 0, 0, 11, "Key: F10" },
{ 0, 0, 12, "Key: F11" },
{ 0, 0, 13, "Key: F12" },
{ 0, 0, 14, "Key: Insert" },
{ 0, 0, 15, "Key: Delete" },
{ 0, 1, 1, "Key: `" },
{ 0, 1, 2, "Key: 1" },
{ 0, 1, 3, "Key: 2" },
{ 0, 1, 4, "Key: 3" },
{ 0, 1, 5, "Key: 4" },
{ 0, 1, 6, "Key: 5" },
{ 0, 1, 7, "Key: 6" },
{ 0, 1, 8, "Key: 7" },
{ 0, 1, 9, "Key: 8" },
{ 0, 1, 10, "Key: 9" },
{ 0, 1, 11, "Key: 0" },
{ 0, 1, 12, "Key: -" },
{ 0, 1, 13, "Key: =" },
{ 0, 1, 14, "Key: Backspace" },
{ 0, 1, 15, "Key: Backspace" },
{ 0, 2, 0, "Key: Tab" },
{ 0, 2, 2, "Key: Q" },
{ 0, 2, 3, "Key: W" },
{ 0, 2, 4, "Key: E" },
{ 0, 2, 5, "Key: R" },
{ 0, 2, 6, "Key: T" },
{ 0, 2, 7, "Key: Y" },
{ 0, 2, 8, "Key: U" },
{ 0, 2, 9, "Key: I" },
{ 0, 2, 10, "Key: O" },
{ 0, 2, 11, "Key: P" },
{ 0, 2, 12, "Key: [" },
{ 0, 2, 13, "Key: ]" },
{ 0, 2, 14, "Key: \\ (ANSI)" },
{ 0, 2, 15, "Key: \\ (ANSI)" },
{ 0, 3, 0, "Key: Caps Lock" },
{ 0, 3, 2, "Key: A" },
{ 0, 3, 3, "Key: S" },
{ 0, 3, 4, "Key: D" },
{ 0, 3, 5, "Key: F" },
{ 0, 3, 6, "Key: G" },
{ 0, 3, 7, "Key: H" },
{ 0, 3, 8, "Key: J" },
{ 0, 3, 9, "Key: K" },
{ 0, 3, 10, "Key: L" },
{ 0, 3, 11, "Key: ;" },
{ 0, 3, 12, "Key: '" },
{ 0, 3, 14, "Key: Enter" },
{ 0, 3, 15, "Key: Enter" },
{ 0, 4, 0, "Key: Left Shift" },
{ 0, 4, 2, "Key: Z" },
{ 0, 4, 3, "Key: X" },
{ 0, 4, 4, "Key: C" },
{ 0, 4, 5, "Key: V" },
{ 0, 4, 6, "Key: B" },
{ 0, 4, 7, "Key: N" },
{ 0, 4, 8, "Key: M" },
{ 0, 4, 9, "Key: ," },
{ 0, 4, 10, "Key: ." },
{ 0, 4, 11, "Key: /" },
{ 0, 4, 12, "Key: Right Shift" },
{ 0, 4, 13, "Key: Right Shift" },
{ 0, 4, 14, "Key: Right Shift" },
{ 0, 5, 0, "Key: Left Control" },
{ 0, 5, 1, "Key: Left Fn" },
{ 0, 5, 2, "Key: Left Windows" },
{ 0, 5, 3, "Key: Left Alt" },
{ 0, 5, 5, "Key: Space" },
{ 0, 5, 6, "Key: Space" },
{ 0, 5, 8, "Key: Space" },
{ 0, 5, 9, "Key: Right Alt" },
{ 0, 5, 10, "Key: Right Fn" },
{ 0, 5, 11, "Key: Right Control" },
{ 0, 5, 12, "Key: Left Arrow" },
{ 0, 5, 13, "Key: Up Arrow" },
{ 0, 5, 14, "Key: Right Arrow" },
{ 0, 5, 15, "Key: Down Arrow" },
};
#define HUNTSMAN_ELITE_KEYMAP_SIZE (sizeof(huntsman_elite_keymap) / sizeof(huntsman_elite_keymap[0]))
static const razer_key huntsman_elite_keymap[] =
@ -886,8 +1076,8 @@ static const razer_device blade_stealth_device =
NULL,
NULL
},
NULL,
0
blade_stealth_keymap,
BLADE_STEALTH_KEYMAP_SIZE
};
/*-------------------------------------------------------------*\
@ -1431,8 +1621,8 @@ static const razer_device blade_pro_2017_device =
NULL,
NULL
},
NULL,
0
blade_pro_2017_keymap,
BLADE_PRO_2017_KEYMAP_SIZE
};
/*-------------------------------------------------------------*\