From aa26e9780697074dc0569e069a810fa04fb4c0b4 Mon Sep 17 00:00:00 2001 From: dokutan <54861821+dokutan@users.noreply.github.com> Date: Mon, 3 Jan 2022 17:56:21 +0100 Subject: [PATCH] M686, M913 button mapping: more keyboard keys --- include/m686/data.cpp | 110 +++++++++++++++++++++++++++++++++++++++++- include/m913/data.cpp | 110 +++++++++++++++++++++++++++++++++++++++++- 2 files changed, 218 insertions(+), 2 deletions(-) diff --git a/include/m686/data.cpp b/include/m686/data.cpp index 9e07580..adad683 100644 --- a/include/m686/data.cpp +++ b/include/m686/data.cpp @@ -78,7 +78,7 @@ std::map< std::string, std::array > mouse_m686::_c_keycodes = { { "profile_switch", { 0x09, 0x00, 0x00, 0x4c } }, }; -/* see documentation/m913-key-press.txt for a description of these packets, generated with: +/* see documentation/m913-key-press.txt for a description of these packets, partially generated with: #!/usr/bin/env julia for i in [0:25;] println("{ \"", Char('a'+i), "\", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x", string(4+i, base=16, pad=2), ", 0x00, 0x41, 0x", string(4+i, base=16, pad=2), ", 0x00, 0x", string(0x89 - 2*i, base=16, pad=2), ", 0x00, 0x00, 0x48} },") @@ -111,6 +111,114 @@ std::map< std::string, std::array > mouse_m686::_c_keyboard_key_pac { "x", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x1b, 0x00, 0x41, 0x1b, 0x00, 0x5b, 0x00, 0x00, 0x48} }, { "y", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x1c, 0x00, 0x41, 0x1c, 0x00, 0x59, 0x00, 0x00, 0x48} }, { "z", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x1d, 0x00, 0x41, 0x1d, 0x00, 0x57, 0x00, 0x00, 0x48} }, + { "1", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x1e, 0x00, 0x41, 0x1e, 0x00, 0x55, 0x00, 0x00, 0x48} }, + { "2", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x1f, 0x00, 0x41, 0x1f, 0x00, 0x53, 0x00, 0x00, 0x48} }, + { "3", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x20, 0x00, 0x41, 0x20, 0x00, 0x51, 0x00, 0x00, 0x48} }, + { "4", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x21, 0x00, 0x41, 0x21, 0x00, 0x4f, 0x00, 0x00, 0x48} }, + { "5", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x22, 0x00, 0x41, 0x22, 0x00, 0x4d, 0x00, 0x00, 0x48} }, + { "6", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x23, 0x00, 0x41, 0x23, 0x00, 0x4b, 0x00, 0x00, 0x48} }, + { "7", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x24, 0x00, 0x41, 0x24, 0x00, 0x49, 0x00, 0x00, 0x48} }, + { "8", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x25, 0x00, 0x41, 0x25, 0x00, 0x47, 0x00, 0x00, 0x48} }, + { "9", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x26, 0x00, 0x41, 0x26, 0x00, 0x45, 0x00, 0x00, 0x48} }, + { "0", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x27, 0x00, 0x41, 0x27, 0x00, 0x43, 0x00, 0x00, 0x48} }, + { "Return", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x28, 0x00, 0x41, 0x28, 0x00, 0x41, 0x00, 0x00, 0x48} }, + { "Esc", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x29, 0x00, 0x41, 0x29, 0x00, 0x3f, 0x00, 0x00, 0x48} }, + { "Backspace", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x2a, 0x00, 0x41, 0x2a, 0x00, 0x3d, 0x00, 0x00, 0x48} }, + { "Tab", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x2b, 0x00, 0x41, 0x2b, 0x00, 0x3b, 0x00, 0x00, 0x48} }, + { "Space", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x2c, 0x00, 0x41, 0x2c, 0x00, 0x39, 0x00, 0x00, 0x48} }, + { "Minus", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x2d, 0x00, 0x41, 0x2d, 0x00, 0x37, 0x00, 0x00, 0x48} }, + { "Equals", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x2e, 0x00, 0x41, 0x2e, 0x00, 0x35, 0x00, 0x00, 0x48} }, + { "Bracket_l", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x2f, 0x00, 0x41, 0x2f, 0x00, 0x33, 0x00, 0x00, 0x48} }, + { "Bracket_r", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x30, 0x00, 0x41, 0x30, 0x00, 0x31, 0x00, 0x00, 0x48} }, + { "Backslash", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x31, 0x00, 0x41, 0x31, 0x00, 0x2f, 0x00, 0x00, 0x48} }, + { "Semicolon", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x33, 0x00, 0x41, 0x33, 0x00, 0x2b, 0x00, 0x00, 0x48} }, + { "Apostrophe", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x34, 0x00, 0x41, 0x34, 0x00, 0x29, 0x00, 0x00, 0x48} }, + { "Grave", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x35, 0x00, 0x41, 0x35, 0x00, 0x27, 0x00, 0x00, 0x48} }, + { "Comma", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x36, 0x00, 0x41, 0x36, 0x00, 0x25, 0x00, 0x00, 0x48} }, + { "Period", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x37, 0x00, 0x41, 0x37, 0x00, 0x23, 0x00, 0x00, 0x48} }, + { "Slash", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x38, 0x00, 0x41, 0x38, 0x00, 0x21, 0x00, 0x00, 0x48} }, + { "Caps_Lock", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x39, 0x00, 0x41, 0x39, 0x00, 0x1f, 0x00, 0x00, 0x48} }, + { "F1", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x3a, 0x00, 0x41, 0x3a, 0x00, 0x1d, 0x00, 0x00, 0x48} }, + { "F2", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x3b, 0x00, 0x41, 0x3b, 0x00, 0x1b, 0x00, 0x00, 0x48} }, + { "F3", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x3c, 0x00, 0x41, 0x3c, 0x00, 0x19, 0x00, 0x00, 0x48} }, + { "F4", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x3d, 0x00, 0x41, 0x3d, 0x00, 0x17, 0x00, 0x00, 0x48} }, + { "F5", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x3e, 0x00, 0x41, 0x3e, 0x00, 0x15, 0x00, 0x00, 0x48} }, + { "F6", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x3f, 0x00, 0x41, 0x3f, 0x00, 0x13, 0x00, 0x00, 0x48} }, + { "F7", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x40, 0x00, 0x41, 0x40, 0x00, 0x11, 0x00, 0x00, 0x48} }, + { "F8", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x41, 0x00, 0x41, 0x41, 0x00, 0x0f, 0x00, 0x00, 0x48} }, + { "F9", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x42, 0x00, 0x41, 0x42, 0x00, 0x0d, 0x00, 0x00, 0x48} }, + { "F10", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x43, 0x00, 0x41, 0x43, 0x00, 0x0b, 0x00, 0x00, 0x48} }, + { "F11", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x44, 0x00, 0x41, 0x44, 0x00, 0x09, 0x00, 0x00, 0x48} }, + { "F12", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x45, 0x00, 0x41, 0x45, 0x00, 0x07, 0x00, 0x00, 0x48} }, + { "Sys_Rq", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x46, 0x00, 0x41, 0x46, 0x00, 0x05, 0x00, 0x00, 0x48} }, + { "Scroll_Lock", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x47, 0x00, 0x41, 0x47, 0x00, 0x03, 0x00, 0x00, 0x48} }, + { "Pause", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x48, 0x00, 0x41, 0x48, 0x00, 0x01, 0x00, 0x00, 0x48} }, + { "Home", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x4a, 0x00, 0x41, 0x4a, 0x00, 0xfd, 0x00, 0x00, 0x48} }, + { "PgUp", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x4b, 0x00, 0x41, 0x4b, 0x00, 0xfb, 0x00, 0x00, 0x48} }, + { "Delete", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x4c, 0x00, 0x41, 0x4c, 0x00, 0xf9, 0x00, 0x00, 0x48} }, + { "End", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x4d, 0x00, 0x41, 0x4d, 0x00, 0xf7, 0x00, 0x00, 0x48} }, + { "PgDown", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x4e, 0x00, 0x41, 0x4e, 0x00, 0xf5, 0x00, 0x00, 0x48} }, + { "Right", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x4f, 0x00, 0x41, 0x4f, 0x00, 0xf3, 0x00, 0x00, 0x48} }, + { "Left", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x50, 0x00, 0x41, 0x50, 0x00, 0xf1, 0x00, 0x00, 0x48} }, + { "Down", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x51, 0x00, 0x41, 0x51, 0x00, 0xef, 0x00, 0x00, 0x48} }, + { "Up", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x52, 0x00, 0x41, 0x52, 0x00, 0xed, 0x00, 0x00, 0x48} }, + { "Num_Lock", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x53, 0x00, 0x41, 0x53, 0x00, 0xeb, 0x00, 0x00, 0x48} }, + { "Num_Slash", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x54, 0x00, 0x41, 0x54, 0x00, 0xe9, 0x00, 0x00, 0x48} }, + { "Num_Asterisk", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x55, 0x00, 0x41, 0x55, 0x00, 0xe7, 0x00, 0x00, 0x48} }, + { "Num_Minus", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x56, 0x00, 0x41, 0x56, 0x00, 0xe5, 0x00, 0x00, 0x48} }, + { "Num_Plus", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x57, 0x00, 0x41, 0x57, 0x00, 0xe3, 0x00, 0x00, 0x48} }, + { "Num_Return", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x58, 0x00, 0x41, 0x58, 0x00, 0xe1, 0x00, 0x00, 0x48} }, + { "Num_1", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x59, 0x00, 0x41, 0x59, 0x00, 0xdf, 0x00, 0x00, 0x48} }, + { "Num_2", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x5a, 0x00, 0x41, 0x5a, 0x00, 0xdd, 0x00, 0x00, 0x48} }, + { "Num_3", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x5b, 0x00, 0x41, 0x5b, 0x00, 0xdb, 0x00, 0x00, 0x48} }, + { "Num_4", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x5c, 0x00, 0x41, 0x5c, 0x00, 0xd9, 0x00, 0x00, 0x48} }, + { "Num_5", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x5d, 0x00, 0x41, 0x5d, 0x00, 0xd7, 0x00, 0x00, 0x48} }, + { "Num_6", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x5e, 0x00, 0x41, 0x5e, 0x00, 0xd5, 0x00, 0x00, 0x48} }, + { "Num_7", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x5f, 0x00, 0x41, 0x5f, 0x00, 0xd3, 0x00, 0x00, 0x48} }, + { "Num_8", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x60, 0x00, 0x41, 0x60, 0x00, 0xd1, 0x00, 0x00, 0x48} }, + { "Num_9", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x61, 0x00, 0x41, 0x61, 0x00, 0xcf, 0x00, 0x00, 0x48} }, + { "Num_0", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x62, 0x00, 0x41, 0x62, 0x00, 0xcd, 0x00, 0x00, 0x48} }, + { "Num_Period", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x63, 0x00, 0x41, 0x63, 0x00, 0xcb, 0x00, 0x00, 0x48} }, + { "Int_Key", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x64, 0x00, 0x41, 0x64, 0x00, 0xc9, 0x00, 0x00, 0x48} }, + { "Compose", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x65, 0x00, 0x41, 0x65, 0x00, 0xc7, 0x00, 0x00, 0x48} }, + { "Power", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x66, 0x00, 0x41, 0x66, 0x00, 0xc5, 0x00, 0x00, 0x48} }, + { "Num_Equals", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x67, 0x00, 0x41, 0x67, 0x00, 0xc3, 0x00, 0x00, 0x48} }, + { "F13", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x68, 0x00, 0x41, 0x68, 0x00, 0xc1, 0x00, 0x00, 0x48} }, + { "F14", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x69, 0x00, 0x41, 0x69, 0x00, 0xbf, 0x00, 0x00, 0x48} }, + { "F15", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x6a, 0x00, 0x41, 0x6a, 0x00, 0xbd, 0x00, 0x00, 0x48} }, + { "F16", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x6b, 0x00, 0x41, 0x6b, 0x00, 0xbb, 0x00, 0x00, 0x48} }, + { "F17", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x6c, 0x00, 0x41, 0x6c, 0x00, 0xb9, 0x00, 0x00, 0x48} }, + { "F18", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x6d, 0x00, 0x41, 0x6d, 0x00, 0xb7, 0x00, 0x00, 0x48} }, + { "F19", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x6e, 0x00, 0x41, 0x6e, 0x00, 0xb5, 0x00, 0x00, 0x48} }, + { "F20", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x6f, 0x00, 0x41, 0x6f, 0x00, 0xb3, 0x00, 0x00, 0x48} }, + { "F21", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x70, 0x00, 0x41, 0x70, 0x00, 0xb1, 0x00, 0x00, 0x48} }, + { "F22", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x71, 0x00, 0x41, 0x71, 0x00, 0xaf, 0x00, 0x00, 0x48} }, + { "F23", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x72, 0x00, 0x41, 0x72, 0x00, 0xad, 0x00, 0x00, 0x48} }, + { "F24", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x73, 0x00, 0x41, 0x73, 0x00, 0xab, 0x00, 0x00, 0x48} }, + { "Execute", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x74, 0x00, 0x41, 0x74, 0x00, 0xa9, 0x00, 0x00, 0x48} }, + { "Help", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x75, 0x00, 0x41, 0x75, 0x00, 0xa7, 0x00, 0x00, 0x48} }, + { "Props", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x76, 0x00, 0x41, 0x76, 0x00, 0xa5, 0x00, 0x00, 0x48} }, + { "Select", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x77, 0x00, 0x41, 0x77, 0x00, 0xa3, 0x00, 0x00, 0x48} }, + { "Stop", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x78, 0x00, 0x41, 0x78, 0x00, 0xa1, 0x00, 0x00, 0x48} }, + { "Again", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x79, 0x00, 0x41, 0x79, 0x00, 0x9f, 0x00, 0x00, 0x48} }, + { "Undo", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x7a, 0x00, 0x41, 0x7a, 0x00, 0x9d, 0x00, 0x00, 0x48} }, + { "Cut", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x7b, 0x00, 0x41, 0x7b, 0x00, 0x9b, 0x00, 0x00, 0x48} }, + { "Copy", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x7c, 0x00, 0x41, 0x7c, 0x00, 0x99, 0x00, 0x00, 0x48} }, + { "Paste", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x7d, 0x00, 0x41, 0x7d, 0x00, 0x97, 0x00, 0x00, 0x48} }, + { "Find", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x7e, 0x00, 0x41, 0x7e, 0x00, 0x95, 0x00, 0x00, 0x48} }, + { "Mute", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x7f, 0x00, 0x41, 0x7f, 0x00, 0x93, 0x00, 0x00, 0x48} }, + { "Volume_Up", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x80, 0x00, 0x41, 0x80, 0x00, 0x91, 0x00, 0x00, 0x48} }, + { "Volume_Down", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x81, 0x00, 0x41, 0x81, 0x00, 0x8f, 0x00, 0x00, 0x48} }, + { "Num_Comma", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x85, 0x00, 0x41, 0x85, 0x00, 0x87, 0x00, 0x00, 0x48} }, + { "Ro", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x87, 0x00, 0x41, 0x87, 0x00, 0x83, 0x00, 0x00, 0x48} }, + { "Katakana_Hiragana", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x88, 0x00, 0x41, 0x88, 0x00, 0x81, 0x00, 0x00, 0x48} }, + { "Yen", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x89, 0x00, 0x41, 0x89, 0x00, 0x7f, 0x00, 0x00, 0x48} }, + { "Henkan", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x8a, 0x00, 0x41, 0x8a, 0x00, 0x7d, 0x00, 0x00, 0x48} }, + { "Muhenkan", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x8b, 0x00, 0x41, 0x8b, 0x00, 0x7b, 0x00, 0x00, 0x48} }, + { "Hanguel", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x90, 0x00, 0x41, 0x90, 0x00, 0x71, 0x00, 0x00, 0x48} }, + { "Hanja", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x91, 0x00, 0x41, 0x91, 0x00, 0x6f, 0x00, 0x00, 0x48} }, + { "Hiragana", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x93, 0x00, 0x41, 0x93, 0x00, 0x6b, 0x00, 0x00, 0x48} }, + { "Zenkaku_Hankaku", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x94, 0x00, 0x41, 0x94, 0x00, 0x69, 0x00, 0x00, 0x48} }, }; // DPI → bytecode diff --git a/include/m913/data.cpp b/include/m913/data.cpp index 28f470c..ada09d8 100644 --- a/include/m913/data.cpp +++ b/include/m913/data.cpp @@ -86,7 +86,7 @@ std::map< std::string, std::array > mouse_m913::_c_keycodes = { { "profile_switch", { 0x09, 0x00, 0x00, 0x4c } }, }; -/* see documentation/m913-key-press.txt for a description of these packets, generated with: +/* see documentation/m913-key-press.txt for a description of these packets, partially generated with: #!/usr/bin/env julia for i in [0:25;] println("{ \"", Char('a'+i), "\", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x", string(4+i, base=16, pad=2), ", 0x00, 0x41, 0x", string(4+i, base=16, pad=2), ", 0x00, 0x", string(0x89 - 2*i, base=16, pad=2), ", 0x00, 0x00, 0x48} },") @@ -119,6 +119,114 @@ std::map< std::string, std::array > mouse_m913::_c_keyboard_key_pac { "x", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x1b, 0x00, 0x41, 0x1b, 0x00, 0x5b, 0x00, 0x00, 0x48} }, { "y", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x1c, 0x00, 0x41, 0x1c, 0x00, 0x59, 0x00, 0x00, 0x48} }, { "z", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x1d, 0x00, 0x41, 0x1d, 0x00, 0x57, 0x00, 0x00, 0x48} }, + { "1", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x1e, 0x00, 0x41, 0x1e, 0x00, 0x55, 0x00, 0x00, 0x48} }, + { "2", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x1f, 0x00, 0x41, 0x1f, 0x00, 0x53, 0x00, 0x00, 0x48} }, + { "3", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x20, 0x00, 0x41, 0x20, 0x00, 0x51, 0x00, 0x00, 0x48} }, + { "4", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x21, 0x00, 0x41, 0x21, 0x00, 0x4f, 0x00, 0x00, 0x48} }, + { "5", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x22, 0x00, 0x41, 0x22, 0x00, 0x4d, 0x00, 0x00, 0x48} }, + { "6", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x23, 0x00, 0x41, 0x23, 0x00, 0x4b, 0x00, 0x00, 0x48} }, + { "7", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x24, 0x00, 0x41, 0x24, 0x00, 0x49, 0x00, 0x00, 0x48} }, + { "8", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x25, 0x00, 0x41, 0x25, 0x00, 0x47, 0x00, 0x00, 0x48} }, + { "9", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x26, 0x00, 0x41, 0x26, 0x00, 0x45, 0x00, 0x00, 0x48} }, + { "0", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x27, 0x00, 0x41, 0x27, 0x00, 0x43, 0x00, 0x00, 0x48} }, + { "Return", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x28, 0x00, 0x41, 0x28, 0x00, 0x41, 0x00, 0x00, 0x48} }, + { "Esc", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x29, 0x00, 0x41, 0x29, 0x00, 0x3f, 0x00, 0x00, 0x48} }, + { "Backspace", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x2a, 0x00, 0x41, 0x2a, 0x00, 0x3d, 0x00, 0x00, 0x48} }, + { "Tab", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x2b, 0x00, 0x41, 0x2b, 0x00, 0x3b, 0x00, 0x00, 0x48} }, + { "Space", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x2c, 0x00, 0x41, 0x2c, 0x00, 0x39, 0x00, 0x00, 0x48} }, + { "Minus", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x2d, 0x00, 0x41, 0x2d, 0x00, 0x37, 0x00, 0x00, 0x48} }, + { "Equals", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x2e, 0x00, 0x41, 0x2e, 0x00, 0x35, 0x00, 0x00, 0x48} }, + { "Bracket_l", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x2f, 0x00, 0x41, 0x2f, 0x00, 0x33, 0x00, 0x00, 0x48} }, + { "Bracket_r", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x30, 0x00, 0x41, 0x30, 0x00, 0x31, 0x00, 0x00, 0x48} }, + { "Backslash", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x31, 0x00, 0x41, 0x31, 0x00, 0x2f, 0x00, 0x00, 0x48} }, + { "Semicolon", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x33, 0x00, 0x41, 0x33, 0x00, 0x2b, 0x00, 0x00, 0x48} }, + { "Apostrophe", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x34, 0x00, 0x41, 0x34, 0x00, 0x29, 0x00, 0x00, 0x48} }, + { "Grave", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x35, 0x00, 0x41, 0x35, 0x00, 0x27, 0x00, 0x00, 0x48} }, + { "Comma", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x36, 0x00, 0x41, 0x36, 0x00, 0x25, 0x00, 0x00, 0x48} }, + { "Period", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x37, 0x00, 0x41, 0x37, 0x00, 0x23, 0x00, 0x00, 0x48} }, + { "Slash", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x38, 0x00, 0x41, 0x38, 0x00, 0x21, 0x00, 0x00, 0x48} }, + { "Caps_Lock", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x39, 0x00, 0x41, 0x39, 0x00, 0x1f, 0x00, 0x00, 0x48} }, + { "F1", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x3a, 0x00, 0x41, 0x3a, 0x00, 0x1d, 0x00, 0x00, 0x48} }, + { "F2", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x3b, 0x00, 0x41, 0x3b, 0x00, 0x1b, 0x00, 0x00, 0x48} }, + { "F3", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x3c, 0x00, 0x41, 0x3c, 0x00, 0x19, 0x00, 0x00, 0x48} }, + { "F4", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x3d, 0x00, 0x41, 0x3d, 0x00, 0x17, 0x00, 0x00, 0x48} }, + { "F5", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x3e, 0x00, 0x41, 0x3e, 0x00, 0x15, 0x00, 0x00, 0x48} }, + { "F6", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x3f, 0x00, 0x41, 0x3f, 0x00, 0x13, 0x00, 0x00, 0x48} }, + { "F7", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x40, 0x00, 0x41, 0x40, 0x00, 0x11, 0x00, 0x00, 0x48} }, + { "F8", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x41, 0x00, 0x41, 0x41, 0x00, 0x0f, 0x00, 0x00, 0x48} }, + { "F9", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x42, 0x00, 0x41, 0x42, 0x00, 0x0d, 0x00, 0x00, 0x48} }, + { "F10", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x43, 0x00, 0x41, 0x43, 0x00, 0x0b, 0x00, 0x00, 0x48} }, + { "F11", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x44, 0x00, 0x41, 0x44, 0x00, 0x09, 0x00, 0x00, 0x48} }, + { "F12", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x45, 0x00, 0x41, 0x45, 0x00, 0x07, 0x00, 0x00, 0x48} }, + { "Sys_Rq", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x46, 0x00, 0x41, 0x46, 0x00, 0x05, 0x00, 0x00, 0x48} }, + { "Scroll_Lock", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x47, 0x00, 0x41, 0x47, 0x00, 0x03, 0x00, 0x00, 0x48} }, + { "Pause", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x48, 0x00, 0x41, 0x48, 0x00, 0x01, 0x00, 0x00, 0x48} }, + { "Home", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x4a, 0x00, 0x41, 0x4a, 0x00, 0xfd, 0x00, 0x00, 0x48} }, + { "PgUp", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x4b, 0x00, 0x41, 0x4b, 0x00, 0xfb, 0x00, 0x00, 0x48} }, + { "Delete", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x4c, 0x00, 0x41, 0x4c, 0x00, 0xf9, 0x00, 0x00, 0x48} }, + { "End", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x4d, 0x00, 0x41, 0x4d, 0x00, 0xf7, 0x00, 0x00, 0x48} }, + { "PgDown", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x4e, 0x00, 0x41, 0x4e, 0x00, 0xf5, 0x00, 0x00, 0x48} }, + { "Right", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x4f, 0x00, 0x41, 0x4f, 0x00, 0xf3, 0x00, 0x00, 0x48} }, + { "Left", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x50, 0x00, 0x41, 0x50, 0x00, 0xf1, 0x00, 0x00, 0x48} }, + { "Down", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x51, 0x00, 0x41, 0x51, 0x00, 0xef, 0x00, 0x00, 0x48} }, + { "Up", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x52, 0x00, 0x41, 0x52, 0x00, 0xed, 0x00, 0x00, 0x48} }, + { "Num_Lock", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x53, 0x00, 0x41, 0x53, 0x00, 0xeb, 0x00, 0x00, 0x48} }, + { "Num_Slash", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x54, 0x00, 0x41, 0x54, 0x00, 0xe9, 0x00, 0x00, 0x48} }, + { "Num_Asterisk", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x55, 0x00, 0x41, 0x55, 0x00, 0xe7, 0x00, 0x00, 0x48} }, + { "Num_Minus", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x56, 0x00, 0x41, 0x56, 0x00, 0xe5, 0x00, 0x00, 0x48} }, + { "Num_Plus", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x57, 0x00, 0x41, 0x57, 0x00, 0xe3, 0x00, 0x00, 0x48} }, + { "Num_Return", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x58, 0x00, 0x41, 0x58, 0x00, 0xe1, 0x00, 0x00, 0x48} }, + { "Num_1", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x59, 0x00, 0x41, 0x59, 0x00, 0xdf, 0x00, 0x00, 0x48} }, + { "Num_2", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x5a, 0x00, 0x41, 0x5a, 0x00, 0xdd, 0x00, 0x00, 0x48} }, + { "Num_3", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x5b, 0x00, 0x41, 0x5b, 0x00, 0xdb, 0x00, 0x00, 0x48} }, + { "Num_4", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x5c, 0x00, 0x41, 0x5c, 0x00, 0xd9, 0x00, 0x00, 0x48} }, + { "Num_5", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x5d, 0x00, 0x41, 0x5d, 0x00, 0xd7, 0x00, 0x00, 0x48} }, + { "Num_6", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x5e, 0x00, 0x41, 0x5e, 0x00, 0xd5, 0x00, 0x00, 0x48} }, + { "Num_7", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x5f, 0x00, 0x41, 0x5f, 0x00, 0xd3, 0x00, 0x00, 0x48} }, + { "Num_8", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x60, 0x00, 0x41, 0x60, 0x00, 0xd1, 0x00, 0x00, 0x48} }, + { "Num_9", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x61, 0x00, 0x41, 0x61, 0x00, 0xcf, 0x00, 0x00, 0x48} }, + { "Num_0", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x62, 0x00, 0x41, 0x62, 0x00, 0xcd, 0x00, 0x00, 0x48} }, + { "Num_Period", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x63, 0x00, 0x41, 0x63, 0x00, 0xcb, 0x00, 0x00, 0x48} }, + { "Int_Key", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x64, 0x00, 0x41, 0x64, 0x00, 0xc9, 0x00, 0x00, 0x48} }, + { "Compose", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x65, 0x00, 0x41, 0x65, 0x00, 0xc7, 0x00, 0x00, 0x48} }, + { "Power", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x66, 0x00, 0x41, 0x66, 0x00, 0xc5, 0x00, 0x00, 0x48} }, + { "Num_Equals", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x67, 0x00, 0x41, 0x67, 0x00, 0xc3, 0x00, 0x00, 0x48} }, + { "F13", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x68, 0x00, 0x41, 0x68, 0x00, 0xc1, 0x00, 0x00, 0x48} }, + { "F14", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x69, 0x00, 0x41, 0x69, 0x00, 0xbf, 0x00, 0x00, 0x48} }, + { "F15", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x6a, 0x00, 0x41, 0x6a, 0x00, 0xbd, 0x00, 0x00, 0x48} }, + { "F16", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x6b, 0x00, 0x41, 0x6b, 0x00, 0xbb, 0x00, 0x00, 0x48} }, + { "F17", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x6c, 0x00, 0x41, 0x6c, 0x00, 0xb9, 0x00, 0x00, 0x48} }, + { "F18", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x6d, 0x00, 0x41, 0x6d, 0x00, 0xb7, 0x00, 0x00, 0x48} }, + { "F19", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x6e, 0x00, 0x41, 0x6e, 0x00, 0xb5, 0x00, 0x00, 0x48} }, + { "F20", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x6f, 0x00, 0x41, 0x6f, 0x00, 0xb3, 0x00, 0x00, 0x48} }, + { "F21", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x70, 0x00, 0x41, 0x70, 0x00, 0xb1, 0x00, 0x00, 0x48} }, + { "F22", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x71, 0x00, 0x41, 0x71, 0x00, 0xaf, 0x00, 0x00, 0x48} }, + { "F23", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x72, 0x00, 0x41, 0x72, 0x00, 0xad, 0x00, 0x00, 0x48} }, + { "F24", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x73, 0x00, 0x41, 0x73, 0x00, 0xab, 0x00, 0x00, 0x48} }, + { "Execute", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x74, 0x00, 0x41, 0x74, 0x00, 0xa9, 0x00, 0x00, 0x48} }, + { "Help", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x75, 0x00, 0x41, 0x75, 0x00, 0xa7, 0x00, 0x00, 0x48} }, + { "Props", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x76, 0x00, 0x41, 0x76, 0x00, 0xa5, 0x00, 0x00, 0x48} }, + { "Select", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x77, 0x00, 0x41, 0x77, 0x00, 0xa3, 0x00, 0x00, 0x48} }, + { "Stop", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x78, 0x00, 0x41, 0x78, 0x00, 0xa1, 0x00, 0x00, 0x48} }, + { "Again", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x79, 0x00, 0x41, 0x79, 0x00, 0x9f, 0x00, 0x00, 0x48} }, + { "Undo", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x7a, 0x00, 0x41, 0x7a, 0x00, 0x9d, 0x00, 0x00, 0x48} }, + { "Cut", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x7b, 0x00, 0x41, 0x7b, 0x00, 0x9b, 0x00, 0x00, 0x48} }, + { "Copy", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x7c, 0x00, 0x41, 0x7c, 0x00, 0x99, 0x00, 0x00, 0x48} }, + { "Paste", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x7d, 0x00, 0x41, 0x7d, 0x00, 0x97, 0x00, 0x00, 0x48} }, + { "Find", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x7e, 0x00, 0x41, 0x7e, 0x00, 0x95, 0x00, 0x00, 0x48} }, + { "Mute", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x7f, 0x00, 0x41, 0x7f, 0x00, 0x93, 0x00, 0x00, 0x48} }, + { "Volume_Up", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x80, 0x00, 0x41, 0x80, 0x00, 0x91, 0x00, 0x00, 0x48} }, + { "Volume_Down", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x81, 0x00, 0x41, 0x81, 0x00, 0x8f, 0x00, 0x00, 0x48} }, + { "Num_Comma", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x85, 0x00, 0x41, 0x85, 0x00, 0x87, 0x00, 0x00, 0x48} }, + { "Ro", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x87, 0x00, 0x41, 0x87, 0x00, 0x83, 0x00, 0x00, 0x48} }, + { "Katakana_Hiragana", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x88, 0x00, 0x41, 0x88, 0x00, 0x81, 0x00, 0x00, 0x48} }, + { "Yen", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x89, 0x00, 0x41, 0x89, 0x00, 0x7f, 0x00, 0x00, 0x48} }, + { "Henkan", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x8a, 0x00, 0x41, 0x8a, 0x00, 0x7d, 0x00, 0x00, 0x48} }, + { "Muhenkan", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x8b, 0x00, 0x41, 0x8b, 0x00, 0x7b, 0x00, 0x00, 0x48} }, + { "Hanguel", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x90, 0x00, 0x41, 0x90, 0x00, 0x71, 0x00, 0x00, 0x48} }, + { "Hanja", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x91, 0x00, 0x41, 0x91, 0x00, 0x6f, 0x00, 0x00, 0x48} }, + { "Hiragana", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x93, 0x00, 0x41, 0x93, 0x00, 0x6b, 0x00, 0x00, 0x48} }, + { "Zenkaku_Hankaku", {0x08, 0x07, 0x00, 0x01, 0xa0, 0x08, 0x02, 0x81, 0x94, 0x00, 0x41, 0x94, 0x00, 0x69, 0x00, 0x00, 0x48} }, }; // DPI → bytecode