diff --git a/hid/tiro.json b/hid/tiro.json index 34e938e..cae3cf0 100644 --- a/hid/tiro.json +++ b/hid/tiro.json @@ -43,10 +43,6 @@ "modifier": ["NONE"], "decimal": 45 }, -// "=": { -// "modifier": ["NONE"], -// "decimal": 46 -// }, "֩": { "modifier": ["LSHIFT"], "decimal": 30 diff --git a/main.go b/main.go index 6bfcd07..3516b7f 100644 --- a/main.go +++ b/main.go @@ -165,9 +165,8 @@ func main() { panic(err) } changeKeymap(r, keys, args, hidg0, ¤tKeyMap) - keys[args.ORDER[currentKeyMap]][string(r)].Modifier for _, v := range keys[args.ORDER[currentKeyMap]][string(r)].Modifier { - flag = flag | v + flag = flag | flags[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)