Skip to content

Commit 1087605

Browse files
Razer Ornata Chroma keymap
1 parent 7b4d24a commit 1087605

1 file changed

Lines changed: 117 additions & 2 deletions

File tree

Controllers/OpenRazerController/OpenRazerDevices.h

Lines changed: 117 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1026,6 +1026,121 @@ static const razer_key blackwidow_2019_keymap[] =
10261026
{ 0, 5, 20, "Key: Number Pad ," },
10271027
};
10281028

1029+
#define ORNATA_CHROMA_KEYMAP_SIZE (sizeof(ornata_chroma_keymap) / sizeof(ornata_chroma_keymap[0]))
1030+
1031+
static const razer_key ornata_chroma_keymap[] =
1032+
{
1033+
/*---------------------------------------------------------------------*\
1034+
| Zone, Row, Column, Key |
1035+
\*---------------------------------------------------------------------*/
1036+
{ 0, 0, 1, "Key: Escape" },
1037+
{ 0, 0, 3, "Key: F1" },
1038+
{ 0, 0, 4, "Key: F2" },
1039+
{ 0, 0, 5, "Key: F3" },
1040+
{ 0, 0, 6, "Key: F4" },
1041+
{ 0, 0, 7, "Key: F5" },
1042+
{ 0, 0, 8, "Key: F6" },
1043+
{ 0, 0, 9, "Key: F7" },
1044+
{ 0, 0, 10, "Key: F8" },
1045+
{ 0, 0, 11, "Key: F9" },
1046+
{ 0, 0, 12, "Key: F10" },
1047+
{ 0, 0, 13, "Key: F11" },
1048+
{ 0, 0, 14, "Key: F12" },
1049+
{ 0, 0, 15, "Key: Print Screen" },
1050+
{ 0, 0, 16, "Key: Scroll Lock" },
1051+
{ 0, 0, 17, "Key: Pause/Break" },
1052+
{ 0, 1, 1, "Key: `" },
1053+
{ 0, 1, 2, "Key: 1" },
1054+
{ 0, 1, 3, "Key: 2" },
1055+
{ 0, 1, 4, "Key: 3" },
1056+
{ 0, 1, 5, "Key: 4" },
1057+
{ 0, 1, 6, "Key: 5" },
1058+
{ 0, 1, 7, "Key: 6" },
1059+
{ 0, 1, 8, "Key: 7" },
1060+
{ 0, 1, 9, "Key: 8" },
1061+
{ 0, 1, 10, "Key: 9" },
1062+
{ 0, 1, 11, "Key: 0" },
1063+
{ 0, 1, 12, "Key: -" },
1064+
{ 0, 1, 13, "Key: =" },
1065+
{ 0, 1, 14, "Key: Backspace" },
1066+
{ 0, 1, 15, "Key: Insert" },
1067+
{ 0, 1, 16, "Key: Home" },
1068+
{ 0, 1, 17, "Key: Page Up" },
1069+
{ 0, 1, 18, "Key: Num Lock" },
1070+
{ 0, 1, 19, "Key: Number Pad /" },
1071+
{ 0, 1, 20, "Key: Number Pad *" },
1072+
{ 0, 1, 21, "Key: Number Pad -" },
1073+
{ 0, 2, 1, "Key: Tab" },
1074+
{ 0, 2, 2, "Key: Q" },
1075+
{ 0, 2, 3, "Key: W" },
1076+
{ 0, 2, 4, "Key: E" },
1077+
{ 0, 2, 5, "Key: R" },
1078+
{ 0, 2, 6, "Key: T" },
1079+
{ 0, 2, 7, "Key: Y" },
1080+
{ 0, 2, 8, "Key: U" },
1081+
{ 0, 2, 9, "Key: I" },
1082+
{ 0, 2, 10, "Key: O" },
1083+
{ 0, 2, 11, "Key: P" },
1084+
{ 0, 2, 12, "Key: [" },
1085+
{ 0, 2, 13, "Key: ]" },
1086+
{ 0, 2, 14, "Key: \\ (ANSI)" },
1087+
{ 0, 2, 15, "Key: Delete" },
1088+
{ 0, 2, 16, "Key: End" },
1089+
{ 0, 2, 17, "Key: Page Down" },
1090+
{ 0, 2, 18, "Key: Number Pad 7" },
1091+
{ 0, 2, 19, "Key: Number Pad 8" },
1092+
{ 0, 2, 20, "Key: Number Pad 9" },
1093+
{ 0, 2, 21, "Key: Number Pad +" },
1094+
{ 0, 3, 1, "Key: Caps Lock" },
1095+
{ 0, 3, 2, "Key: A" },
1096+
{ 0, 3, 3, "Key: S" },
1097+
{ 0, 3, 4, "Key: D" },
1098+
{ 0, 3, 5, "Key: F" },
1099+
{ 0, 3, 6, "Key: G" },
1100+
{ 0, 3, 7, "Key: H" },
1101+
{ 0, 3, 8, "Key: J" },
1102+
{ 0, 3, 9, "Key: K" },
1103+
{ 0, 3, 10, "Key: L" },
1104+
{ 0, 3, 11, "Key: ;" },
1105+
{ 0, 3, 12, "Key: '" },
1106+
{ 0, 3, 13, "Key: #" },
1107+
{ 0, 3, 14, "Key: Enter" },
1108+
{ 0, 3, 18, "Key: Number Pad 4" },
1109+
{ 0, 3, 19, "Key: Number Pad 5" },
1110+
{ 0, 3, 20, "Key: Number Pad 6" },
1111+
{ 0, 4, 1, "Key: Left Shift" },
1112+
{ 0, 4, 2, "Key: \\ (ISO)" },
1113+
{ 0, 4, 3, "Key: Z" },
1114+
{ 0, 4, 4, "Key: X" },
1115+
{ 0, 4, 5, "Key: C" },
1116+
{ 0, 4, 6, "Key: V" },
1117+
{ 0, 4, 7, "Key: B" },
1118+
{ 0, 4, 8, "Key: N" },
1119+
{ 0, 4, 9, "Key: M" },
1120+
{ 0, 4, 10, "Key: ," },
1121+
{ 0, 4, 11, "Key: ." },
1122+
{ 0, 4, 12, "Key: /" },
1123+
{ 0, 4, 14, "Key: Right Shift" },
1124+
{ 0, 4, 16, "Key: Up Arrow" },
1125+
{ 0, 4, 18, "Key: Number Pad 1" },
1126+
{ 0, 4, 19, "Key: Number Pad 2" },
1127+
{ 0, 4, 20, "Key: Number Pad 3" },
1128+
{ 0, 4, 21, "Key: Number Pad Enter" },
1129+
{ 0, 5, 1, "Key: Left Control" },
1130+
{ 0, 5, 2, "Key: Left Windows" },
1131+
{ 0, 5, 3, "Key: Left Alt" },
1132+
{ 0, 5, 7, "Key: Space" },
1133+
{ 0, 5, 11, "Key: Right Alt" },
1134+
{ 0, 5, 12, "Key: Right Fn" },
1135+
{ 0, 5, 13, "Key: Menu" },
1136+
{ 0, 5, 14, "Key: Right Control" },
1137+
{ 0, 5, 15, "Key: Left Arrow" },
1138+
{ 0, 5, 16, "Key: Down Arrow" },
1139+
{ 0, 5, 17, "Key: Right Arrow" },
1140+
{ 0, 5, 19, "Key: Number Pad 0" },
1141+
{ 0, 5, 20, "Key: Number Pad ." },
1142+
};
1143+
10291144
/*-------------------------------------------------------------------------*\
10301145
| KEYBOARDS |
10311146
\*-------------------------------------------------------------------------*/
@@ -1434,8 +1549,8 @@ static const razer_device ornata_chroma_device =
14341549
NULL,
14351550
NULL
14361551
},
1437-
NULL,
1438-
0
1552+
ornata_chroma_keymap,
1553+
ORNATA_CHROMA_KEYMAP_SIZE
14391554
};
14401555

14411556
/*-------------------------------------------------------------*\

0 commit comments

Comments
 (0)