From 6b6b3db9cca7aeb3866a224deb91f93f6c4b021d Mon Sep 17 00:00:00 2001 From: lordwelch Date: Wed, 24 Jan 2018 10:21:44 -0800 Subject: [PATCH] Changed modifier from string to array of string updated code accordingly Added tiro keymap --- hid/dvorak.json | 194 ++++++++-------- hid/qwerty.json | 200 ++++++++-------- hid/tengwar-f.json | 154 ++++++------ hid/tengwar-u.json | 188 +++++++-------- hid/tiro.json | 566 +++++++++++++++++++++++++++++++++++++++++++++ main.go | 11 +- 6 files changed, 941 insertions(+), 372 deletions(-) create mode 100644 hid/tiro.json diff --git a/hid/dvorak.json b/hid/dvorak.json index 813bdb7..fc0ab7e 100644 --- a/hid/dvorak.json +++ b/hid/dvorak.json @@ -1,390 +1,390 @@ { "0": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 39 }, "1": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 30 }, "2": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 31 }, "3": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 32 }, "4": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 33 }, "5": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 34 }, "6": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 35 }, "7": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 36 }, "8": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 37 }, "9": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 38 }, "!": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 30 }, "#": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 32 }, "$": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 33 }, "%": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 34 }, "&": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 36 }, "'": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 20 }, "(": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 38 }, ")": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 39 }, "*": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 37 }, "+": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 48 }, ",": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 26 }, "-": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 52 }, ".": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 8 }, "/": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 47 }, ":": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 29 }, ";": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 29 }, "<": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 26 }, "=": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 48 }, ">": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 8 }, "?": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 47 }, "@": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 31 }, "A": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 4 }, "B": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 17 }, "C": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 12 }, "D": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 11 }, "E": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 7 }, "F": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 28 }, "G": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 24 }, "H": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 13 }, "I": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 10 }, "J": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 6 }, "K": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 25 }, "L": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 19 }, "M": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 16 }, "N": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 15 }, "O": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 22 }, "P": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 21 }, "Q": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 27 }, "R": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 18 }, "S": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 51 }, "T": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 14 }, "U": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 9 }, "V": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 55 }, "W": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 54 }, "X": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 5 }, "Y": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 23 }, "Z": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 56 }, "[": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 45 }, "\"": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 20 }, "\\": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 49 }, "]": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 46 }, "^": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 35 }, "_": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 52 }, "`": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 53 }, "a": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 4 }, "b": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 17 }, "c": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 12 }, "d": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 11 }, "e": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 7 }, "f": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 28 }, "g": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 24 }, "h": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 13 }, "i": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 10 }, "j": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 6 }, "k": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 25 }, "l": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 19 }, "m": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 16 }, "n": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 15 }, "o": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 22 }, "p": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 21 }, "q": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 27 }, "r": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 18 }, "s": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 51 }, "t": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 14 }, "u": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 9 }, "v": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 55 }, "w": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 54 }, "x": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 5 }, "y": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 23 }, "z": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 56 }, "{": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 45 }, "|": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 49 }, "}": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 46 }, "~": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 53 }, "\t": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 43 }, "\n": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 40 }, " ": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 44 } } diff --git a/hid/qwerty.json b/hid/qwerty.json index e1f8043..d00b05c 100644 --- a/hid/qwerty.json +++ b/hid/qwerty.json @@ -1,390 +1,390 @@ { "1": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 30 }, "2": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 31 }, "3": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 32 }, "4": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 33 }, "5": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 34 }, "6": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 35 }, "7": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 36 }, "8": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 37 }, "9": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 38 }, "0": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 39 }, "-": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 45 }, "=": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 46 }, "!": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 30 }, "@": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 31 }, "#": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 32 }, "$": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 33 }, "%": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 34 }, "^": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 35 }, "&": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 36 }, "*": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 37 }, "(": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 38 }, ")": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 39 }, - "+": { - "modifier": "LSHIFT", - "decimal": 46 - }, "_": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 45 }, + "+": { + "modifier": ["LSHIFT"], + "decimal": 46 + }, "q": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 20 }, "w": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 26 }, "e": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 8 }, "r": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 21 }, "t": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 23 }, "y": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 28 }, "u": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 24 }, "i": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 12 }, "o": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 18 }, "p": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 19 }, "[": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 47 }, "]": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 48 }, "Q": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 20 }, "W": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 26 }, "E": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 8 }, "R": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 21 }, "T": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 23 }, "Y": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 28 }, "U": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 24 }, "I": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 12 }, "O": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 18 }, "P": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 19 }, "{": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 47 }, "}": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 48 }, "a": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 4 }, "s": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 22 }, "d": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 7 }, "f": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 9 }, "g": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 10 }, "h": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 11 }, "j": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 13 }, "k": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 14 }, "l": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 15 }, ";": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 51 }, "'": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 52 }, "A": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 4 }, "S": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 22 }, "D": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 7 }, "F": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 9 }, "G": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 10 }, "H": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 11 }, "J": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 13 }, "K": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 14 }, "L": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 15 }, ":": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 51 }, "\"": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 52 }, "z": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 29 }, "x": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 27 }, "c": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 6 }, "v": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 25 }, "b": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 5 }, "n": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 17 }, "m": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 16 }, ",": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 54 }, ".": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 55 }, "/": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 56 }, "Z": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 29 }, "X": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 27 }, "C": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 6 }, "V": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 25 }, "B": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 5 }, "N": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 17 }, "M": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 16 }, "<": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 54 }, ">": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 55 }, "?": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 56 }, "\\": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 49 }, "|": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 49 }, "`": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 53 }, "~": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 53 }, "\t": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 43 }, "\n": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 40 }, " ": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 44 } } diff --git a/hid/tengwar-f.json b/hid/tengwar-f.json index f5ab816..277254d 100644 --- a/hid/tengwar-f.json +++ b/hid/tengwar-f.json @@ -1,310 +1,310 @@ { "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 30 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 31 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 32 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 33 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 34 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 35 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 36 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 37 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 38 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 39 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 45 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 46 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 30 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 31 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 32 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 33 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 34 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 35 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 36 }, "*": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 37 }, "(": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 38 }, ")": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 39 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 45 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 46 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 20 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 26 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 8 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 21 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 23 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 28 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 24 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 12 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 18 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 19 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 47 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 48 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 20 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 26 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 8 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 21 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 23 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 28 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 24 }, "I": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 12 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 18 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 4 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 22 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 7 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 9 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 10 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 11 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 13 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 14 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 15 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 51 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 52 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 4 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 22 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 15 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 29 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 27 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 6 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 25 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 5 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 17 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 16 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 54 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 55 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 29 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 27 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 55 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 49 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 53 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 53 }, "\t": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 43 }, "\n": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 40 }, " ": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 44 } } diff --git a/hid/tengwar-u.json b/hid/tengwar-u.json index c5e82e9..bfb5462 100644 --- a/hid/tengwar-u.json +++ b/hid/tengwar-u.json @@ -1,378 +1,378 @@ { "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 30 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 31 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 32 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 33 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 34 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 35 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 36 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 37 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 38 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 39 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 45 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 46 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 30 }, "": { - "modifier": "RALT", + "modifier": ["RALT"], "decimal": 31 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 32 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 35 }, "⁊": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 36 }, "⸭": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 37 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 38 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 39 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 46 }, "‍": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 45 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 20 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 26 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 8 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 21 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 23 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 28 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 24 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 12 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 18 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 19 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 47 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 48 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 20 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 26 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 8 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 21 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 23 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 28 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 24 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 12 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 18 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 19 }, "“": { - "modifier": "RALT", + "modifier": ["RALT"], "decimal": 47 }, "‘": { - "modifier": "RALT", + "modifier": ["RALT"], "decimal": 48 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 4 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 22 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 7 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 9 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 10 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 11 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 13 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 14 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 15 }, "჻": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 51 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 52 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 4 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 22 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 7 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 9 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 10 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 11 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 13 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 14 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 15 }, "⁝": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 51 }, "’": { - "modifier": "RALT", + "modifier": ["RALT"], "decimal": 52 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 29 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 27 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 6 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 25 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 5 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 17 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 16 }, "⸱": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 54 }, "⁘": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 55 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 56 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 29 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 27 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 6 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 25 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 5 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 17 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 16 }, ":": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 54 }, "⸬": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 55 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 56 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 49 }, "": { - "modifier": "LSHIFT", + "modifier": ["LSHIFT"], "decimal": 49 }, "": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 53 }, "\t": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 43 }, "\n": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 40 }, " ": { - "modifier": "NONE", + "modifier": ["NONE"], "decimal": 44 } } diff --git a/hid/tiro.json b/hid/tiro.json new file mode 100644 index 0000000..34e938e --- /dev/null +++ b/hid/tiro.json @@ -0,0 +1,566 @@ +{ + "1": { + "modifier": ["NONE"], + "decimal": 30 + }, + "2": { + "modifier": ["NONE"], + "decimal": 31 + }, + "3": { + "modifier": ["NONE"], + "decimal": 32 + }, + "4": { + "modifier": ["NONE"], + "decimal": 33 + }, + "5": { + "modifier": ["NONE"], + "decimal": 34 + }, + "6": { + "modifier": ["NONE"], + "decimal": 35 + }, + "7": { + "modifier": ["NONE"], + "decimal": 36 + }, + "8": { + "modifier": ["NONE"], + "decimal": 37 + }, + "9": { + "modifier": ["NONE"], + "decimal": 38 + }, + "0": { + "modifier": ["NONE"], + "decimal": 39 + }, + "־": { + "modifier": ["NONE"], + "decimal": 45 + }, +// "=": { +// "modifier": ["NONE"], +// "decimal": 46 +// }, + "֩": { + "modifier": ["LSHIFT"], + "decimal": 30 + }, + "֙": { + "modifier": ["LSHIFT"], + "decimal": 31 + }, + "֒": { + "modifier": ["LSHIFT"], + "decimal": 32 + }, + "֯": { + "modifier": ["LSHIFT"], + "decimal": 33 + }, + "ֺ": { + "modifier": ["LSHIFT"], + "decimal": 34 + }, + "ֹ": { + "modifier": ["LSHIFT"], + "decimal": 35 + }, + "ֿ": { + "modifier": ["LSHIFT"], + "decimal": 36 + }, + "ׂ": { + "modifier": ["LSHIFT"], + "decimal": 37 + }, + "ׁ": { + "modifier": ["LSHIFT"], + "decimal": 38 + }, + "֝": { + "modifier": ["LSHIFT"], + "decimal": 39 + }, + "֠": { + "modifier": ["LSHIFT"], + "decimal": 45 + }, + "ּ": { + "modifier": ["LSHIFT"], + "decimal": 46 + }, + "₪": { + "modifier": ["RALT"], + "decimal": 33 + }, + "‍": { + "modifier": ["RALT"], + "decimal": 34 + }, + "‌": { + "modifier": ["RALT"], + "decimal": 35 + }, + "͏": { + "modifier": ["RALT"], + "decimal": 36 + }, + "‎": { + "modifier": ["RALT"], + "decimal": 37 + }, + "‏": { + "modifier": ["RALT"], + "decimal": 38 + }, + "◌": { + "modifier": ["RALT"], + "decimal": 39 + }, + "-": { + "modifier": ["RALT"], + "decimal": 45 + }, + "1": { + "modifier": ["RALT","LSHIFT"], + "decimal": 30 + }, + "2": { + "modifier": ["RALT","LSHIFT"], + "decimal": 31 + }, + "3": { + "modifier": ["RALT","LSHIFT"], + "decimal": 32 + }, + "4": { + "modifier": ["RALT","LSHIFT"], + "decimal": 33 + }, + "5": { + "modifier": ["RALT","LSHIFT"], + "decimal": 34 + }, + "6": { + "modifier": ["RALT","LSHIFT"], + "decimal": 35 + }, + "7": { + "modifier": ["RALT","LSHIFT"], + "decimal": 36 + }, + "8": { + "modifier": ["RALT","LSHIFT"], + "decimal": 37 + }, + "9": { + "modifier": ["RALT","LSHIFT"], + "decimal": 38 + }, + "0": { + "modifier": ["RALT","LSHIFT"], + "decimal": 39 + }, + "_": { + "modifier": ["RALT","LSHIFT"], + "decimal": 45 + }, + "+": { + "modifier": ["RALT","LSHIFT"], + "decimal": 46 + }, + "̇": { + "modifier": ["NONE"], + "decimal": 20 + }, + "׳": { + "modifier": ["NONE"], + "decimal": 26 + }, + "ק": { + "modifier": ["NONE"], + "decimal": 8 + }, + "ר": { + "modifier": ["NONE"], + "decimal": 21 + }, + "א": { + "modifier": ["NONE"], + "decimal": 23 + }, + "ט": { + "modifier": ["NONE"], + "decimal": 28 + }, + "ו": { + "modifier": ["NONE"], + "decimal": 24 + }, + "ן": { + "modifier": ["NONE"], + "decimal": 12 + }, + "ם": { + "modifier": ["NONE"], + "decimal": 18 + }, + "פ": { + "modifier": ["NONE"], + "decimal": 19 + }, + "]": { + "modifier": ["NONE"], + "decimal": 47 + }, + "[": { + "modifier": ["NONE"], + "decimal": 48 + }, + "ׄ": { + "modifier": ["LSHIFT"], + "decimal": 20 + }, + "֬": { + "modifier": ["LSHIFT"], + "decimal": 26 + }, + "֫": { + "modifier": ["LSHIFT"], + "decimal": 8 + }, + "֟": { + "modifier": ["LSHIFT"], + "decimal": 21 + }, + "֓": { + "modifier": ["LSHIFT"], + "decimal": 23 + }, + "֞": { + "modifier": ["LSHIFT"], + "decimal": 28 + }, + "֜": { + "modifier": ["LSHIFT"], + "decimal": 24 + }, + "֡": { + "modifier": ["LSHIFT"], + "decimal": 12 + }, + "֕": { + "modifier": ["LSHIFT"], + "decimal": 18 + }, + "֔": { + "modifier": ["LSHIFT"], + "decimal": 19 + }, + "֗": { + "modifier": ["LSHIFT"], + "decimal": 47 + }, + "֘": { + "modifier": ["LSHIFT"], + "decimal": 48 + }, + "̈": { + "modifier": ["RALT"], + "decimal": 20 + }, + "״": { + "modifier": ["RALT"], + "decimal": 26 + }, + "€": { + "modifier": ["RALT"], + "decimal": 8 + }, + "װ": { + "modifier": ["RALT"], + "decimal": 24 + }, + "ש": { + "modifier": ["NONE"], + "decimal": 4 + }, + "/": { + "modifier": ["RALT","LSHIFT"], + "decimal": 20 + }, + "'": { + "modifier": ["RALT","LSHIFT"], + "decimal": 26 + }, + "}": { + "modifier": ["RALT","LSHIFT"], + "decimal": 47 + }, + "{": { + "modifier": ["RALT","LSHIFT"], + "decimal": 48 + }, + "ד": { + "modifier": ["NONE"], + "decimal": 22 + }, + "ג": { + "modifier": ["NONE"], + "decimal": 7 + }, + "כ": { + "modifier": ["NONE"], + "decimal": 9 + }, + "ע": { + "modifier": ["NONE"], + "decimal": 10 + }, + "י": { + "modifier": ["NONE"], + "decimal": 11 + }, + "ח": { + "modifier": ["NONE"], + "decimal": 13 + }, + "ל": { + "modifier": ["NONE"], + "decimal": 14 + }, + "ך": { + "modifier": ["NONE"], + "decimal": 15 + }, + "ף": { + "modifier": ["NONE"], + "decimal": 51 + }, + "֚": { + "modifier": ["NONE"], + "decimal": 52 + }, + "ֽ": { + "modifier": ["LSHIFT"], + "decimal": 4 + }, + "ְ": { + "modifier": ["LSHIFT"], + "decimal": 22 + }, + "ֻ": { + "modifier": ["LSHIFT"], + "decimal": 7 + }, + "ִ": { + "modifier": ["LSHIFT"], + "decimal": 9 + }, + "ֱ": { + "modifier": ["LSHIFT"], + "decimal": 10 + }, + "ֶ": { + "modifier": ["LSHIFT"], + "decimal": 11 + }, + "ֵ": { + "modifier": ["LSHIFT"], + "decimal": 13 + }, + "ֳ": { + "modifier": ["LSHIFT"], + "decimal": 14 + }, + "ָ": { + "modifier": ["LSHIFT"], + "decimal": 15 + }, + "ֲ": { + "modifier": ["LSHIFT"], + "decimal": 51 + }, + "ַ": { + "modifier": ["LSHIFT"], + "decimal": 52 + }, + "ײ": { + "modifier": ["RALT"], + "decimal": 11 + }, + "ױ": { + "modifier": ["RALT"], + "decimal": 13 + }, + "ׇ": { + "modifier": ["RALT"], + "decimal": 15 + }, + ",": { + "modifier": ["RALT"], + "decimal": 52 + }, + ":": { + "modifier": ["RALT","LSHIFT"], + "decimal": 51 + }, + "\"": { + "modifier": ["RALT","LSHIFT"], + "decimal": 52 + }, + "ז": { + "modifier": ["NONE"], + "decimal": 29 + }, + "ס": { + "modifier": ["NONE"], + "decimal": 27 + }, + "ב": { + "modifier": ["NONE"], + "decimal": 6 + }, + "ה": { + "modifier": ["NONE"], + "decimal": 25 + }, + "נ": { + "modifier": ["NONE"], + "decimal": 5 + }, + "מ": { + "modifier": ["NONE"], + "decimal": 17 + }, + "צ": { + "modifier": ["NONE"], + "decimal": 16 + }, + "ת": { + "modifier": ["NONE"], + "decimal": 54 + }, + "ץ": { + "modifier": ["NONE"], + "decimal": 55 + }, + "֭": { + "modifier": ["NONE"], + "decimal": 56 + }, + "ׅ": { + "modifier": ["LSHIFT"], + "decimal": 29 + }, + "֤": { + "modifier": ["LSHIFT"], + "decimal": 27 + }, + "֪": { + "modifier": ["LSHIFT"], + "decimal": 6 + }, + "֦": { + "modifier": ["LSHIFT"], + "decimal": 25 + }, + "֥": { + "modifier": ["LSHIFT"], + "decimal": 5 + }, + "֧": { + "modifier": ["LSHIFT"], + "decimal": 17 + }, + "֛": { + "modifier": ["LSHIFT"], + "decimal": 16 + }, + "֑": { + "modifier": ["LSHIFT"], + "decimal": 54 + }, + "֖": { + "modifier": ["LSHIFT"], + "decimal": 55 + }, + "֣": { + "modifier": ["LSHIFT"], + "decimal": 56 + }, + "֢": { + "modifier": ["RALT"], + "decimal": 6 + }, + "׆": { + "modifier": ["RALT"], + "decimal": 5 + }, + ".": { + "modifier": ["RALT"], + "decimal": 56 + }, + ">": { + "modifier": ["RALT","LSHIFT"], + "decimal": 54 + }, + "<": { + "modifier": ["RALT","LSHIFT"], + "decimal": 55 + }, + "?": { + "modifier": ["RALT","LSHIFT"], + "decimal": 56 + }, + "׀": { + "modifier": ["NONE"], + "decimal": 49 + }, + "֨": { + "modifier": ["LSHIFT"], + "decimal": 49 + }, + "\\": { + "modifier": ["RALT"], + "decimal": 49 + }, + "|": { + "modifier": ["RALT"], + "decimal": 49 + }, + "׃": { + "modifier": ["NONE"], + "decimal": 53 + }, + "֮": { + "modifier": ["LSHIFT"], + "decimal": 53 + }, + ";": { + "modifier": ["RALT"], + "decimal": 53 + }, + "~": { + "modifier": ["RALT","LSHIFT"], + "decimal": 53 + }, + "\t": { + "modifier": ["NONE"], + "decimal": 43 + }, + "\n": { + "modifier": ["NONE"], + "decimal": 40 + }, + " ": { + "modifier": ["NONE"], + "decimal": 44 + } +} diff --git a/main.go b/main.go index 7080d1e..6bfcd07 100644 --- a/main.go +++ b/main.go @@ -15,8 +15,8 @@ import ( ) type Key struct { - Modifier string `json:"modifier"` - Decimal int `json:"decimal"` + Modifier []string `json:"modifier"` + Decimal int `json:"decimal"` } type Keys map[string]Key @@ -165,10 +165,13 @@ func main() { panic(err) } changeKeymap(r, keys, args, hidg0, ¤tKeyMap) - flag = flags[keys[args.ORDER[currentKeyMap]][string(r)].Modifier] + keys[args.ORDER[currentKeyMap]][string(r)].Modifier + for _, v := range keys[args.ORDER[currentKeyMap]][string(r)].Modifier { + flag = flag | v + } binary.BigEndian.PutUint16(report[:], uint16(keys[args.ORDER[currentKeyMap]][string(r)].Decimal)) Press([8]byte{flag, 0, report[0], report[1], report[2], report[3], report[4], report[5]}, hidg0) - + flag = 0 } keymapto0(args, hidg0, ¤tKeyMap) fmt.Println("Success!")