@@ -675,6 +675,120 @@ static const razer_key huntsman_elite_keymap[] =
675675 { 0 , 5 , 20 , " Key: Number Pad ." },
676676};
677677
678+ #define HUNTSMAN_KEYMAP_SIZE (sizeof (huntsman_keymap) / sizeof (huntsman_keymap[0 ]))
679+
680+ static const razer_key huntsman_keymap[] =
681+ {
682+ /* ---------------------------------------------------------------------*\
683+ | Zone, Row, Column, Key |
684+ \*---------------------------------------------------------------------*/
685+ { 0 , 0 , 1 , " Key: Escape" },
686+ { 0 , 0 , 3 , " Key: F1" },
687+ { 0 , 0 , 4 , " Key: F2" },
688+ { 0 , 0 , 5 , " Key: F3" },
689+ { 0 , 0 , 6 , " Key: F4" },
690+ { 0 , 0 , 7 , " Key: F5" },
691+ { 0 , 0 , 8 , " Key: F6" },
692+ { 0 , 0 , 9 , " Key: F7" },
693+ { 0 , 0 , 10 , " Key: F8" },
694+ { 0 , 0 , 11 , " Key: F9" },
695+ { 0 , 0 , 12 , " Key: F10" },
696+ { 0 , 0 , 13 , " Key: F11" },
697+ { 0 , 0 , 14 , " Key: F12" },
698+ { 0 , 0 , 15 , " Key: Print Screen" },
699+ { 0 , 0 , 16 , " Key: Scroll Lock" },
700+ { 0 , 1 , 1 , " Key: `" },
701+ { 0 , 1 , 2 , " Key: 1" },
702+ { 0 , 1 , 3 , " Key: 2" },
703+ { 0 , 1 , 4 , " Key: 3" },
704+ { 0 , 1 , 5 , " Key: 4" },
705+ { 0 , 1 , 6 , " Key: 5" },
706+ { 0 , 1 , 7 , " Key: 6" },
707+ { 0 , 1 , 8 , " Key: 7" },
708+ { 0 , 1 , 9 , " Key: 8" },
709+ { 0 , 1 , 10 , " Key: 9" },
710+ { 0 , 1 , 11 , " Key: 0" },
711+ { 0 , 1 , 12 , " Key: -" },
712+ { 0 , 1 , 13 , " Key: =" },
713+ { 0 , 1 , 14 , " Key: Backspace" },
714+ { 0 , 1 , 15 , " Key: Insert" },
715+ { 0 , 1 , 16 , " Key: Home" },
716+ { 0 , 1 , 17 , " Key: Page Up" },
717+ { 0 , 1 , 18 , " Key: Num Lock" },
718+ { 0 , 1 , 19 , " Key: Number Pad /" },
719+ { 0 , 1 , 20 , " Key: Number Pad *" },
720+ { 0 , 1 , 21 , " Key: Number Pad -" },
721+ { 0 , 2 , 1 , " Key: Tab" },
722+ { 0 , 2 , 2 , " Key: Q" },
723+ { 0 , 2 , 3 , " Key: W" },
724+ { 0 , 2 , 4 , " Key: E" },
725+ { 0 , 2 , 5 , " Key: R" },
726+ { 0 , 2 , 6 , " Key: T" },
727+ { 0 , 2 , 7 , " Key: Y" },
728+ { 0 , 2 , 8 , " Key: U" },
729+ { 0 , 2 , 9 , " Key: I" },
730+ { 0 , 2 , 10 , " Key: O" },
731+ { 0 , 2 , 11 , " Key: P" },
732+ { 0 , 2 , 12 , " Key: [" },
733+ { 0 , 2 , 13 , " Key: ]" },
734+ { 0 , 2 , 14 , " Key: \\ (ANSI)" },
735+ { 0 , 2 , 15 , " Key: Delete" },
736+ { 0 , 2 , 16 , " Key: End" },
737+ { 0 , 2 , 17 , " Key: Page Down" },
738+ { 0 , 2 , 18 , " Key: Number Pad 7" },
739+ { 0 , 2 , 19 , " Key: Number Pad 8" },
740+ { 0 , 2 , 20 , " Key: Number Pad 9" },
741+ { 0 , 2 , 21 , " Key: Number Pad +" },
742+ { 0 , 3 , 1 , " Key: Caps Lock" },
743+ { 0 , 3 , 2 , " Key: A" },
744+ { 0 , 3 , 3 , " Key: S" },
745+ { 0 , 3 , 4 , " Key: D" },
746+ { 0 , 3 , 5 , " Key: F" },
747+ { 0 , 3 , 6 , " Key: G" },
748+ { 0 , 3 , 7 , " Key: H" },
749+ { 0 , 3 , 8 , " Key: J" },
750+ { 0 , 3 , 9 , " Key: K" },
751+ { 0 , 3 , 10 , " Key: L" },
752+ { 0 , 3 , 11 , " Key: ;" },
753+ { 0 , 3 , 12 , " Key: '" },
754+ { 0 , 3 , 13 , " Key: #" },
755+ { 0 , 3 , 14 , " Key: Enter" },
756+ { 0 , 3 , 18 , " Key: Number Pad 4" },
757+ { 0 , 3 , 19 , " Key: Number Pad 5" },
758+ { 0 , 3 , 20 , " Key: Number Pad 6" },
759+ { 0 , 4 , 1 , " Key: Left Shift" },
760+ { 0 , 4 , 2 , " Key: \\ (ISO)" },
761+ { 0 , 4 , 3 , " Key: Z" },
762+ { 0 , 4 , 4 , " Key: X" },
763+ { 0 , 4 , 5 , " Key: C" },
764+ { 0 , 4 , 6 , " Key: V" },
765+ { 0 , 4 , 7 , " Key: B" },
766+ { 0 , 4 , 8 , " Key: N" },
767+ { 0 , 4 , 9 , " Key: M" },
768+ { 0 , 4 , 10 , " Key: ," },
769+ { 0 , 4 , 11 , " Key: ." },
770+ { 0 , 4 , 12 , " Key: /" },
771+ { 0 , 4 , 14 , " Key: Right Shift" },
772+ { 0 , 4 , 16 , " Key: Up Arrow" },
773+ { 0 , 4 , 18 , " Key: Number Pad 1" },
774+ { 0 , 4 , 19 , " Key: Number Pad 2" },
775+ { 0 , 4 , 20 , " Key: Number Pad 3" },
776+ { 0 , 4 , 21 , " Key: Number Pad Enter" },
777+ { 0 , 5 , 1 , " Key: Left Control" },
778+ { 0 , 5 , 2 , " Key: Left Windows" },
779+ { 0 , 5 , 3 , " Key: Left Alt" },
780+ { 0 , 5 , 7 , " Key: Space" },
781+ { 0 , 5 , 11 , " Key: Right Alt" },
782+ { 0 , 5 , 12 , " Key: Right Fn" },
783+ { 0 , 5 , 13 , " Key: Menu" },
784+ { 0 , 5 , 14 , " Key: Right Control" },
785+ { 0 , 5 , 15 , " Key: Left Arrow" },
786+ { 0 , 5 , 16 , " Key: Down Arrow" },
787+ { 0 , 5 , 17 , " Key: Right Arrow" },
788+ { 0 , 5 , 19 , " Key: Number Pad 0" },
789+ { 0 , 5 , 20 , " Key: Number Pad ." },
790+ };
791+
678792#define BLACKWIDOW_ELITE_KEYMAP_SIZE (sizeof (blackwidow_elite_keymap) / sizeof (blackwidow_elite_keymap[0 ]))
679793
680794static const razer_key blackwidow_elite_keymap[] =
@@ -1387,8 +1501,8 @@ static const razer_device huntsman_device =
13871501 NULL ,
13881502 NULL
13891503 },
1390- NULL ,
1391- 0
1504+ huntsman_keymap ,
1505+ HUNTSMAN_KEYMAP_SIZE
13921506};
13931507
13941508/* -------------------------------------------------------------*\
0 commit comments