This commit is contained in:
lordwelch 2017-11-06 22:22:44 -07:00
parent a762e038f2
commit 0d2c476db9

View File

@ -49,6 +49,7 @@ func Hold(press [8]byte, file io.Writer) {
func changeKeymap(r rune, keys map[string]Keys, args Args, hidg0 *os.File, currentKeyMap *int) { func changeKeymap(r rune, keys map[string]Keys, args Args, hidg0 *os.File, currentKeyMap *int) {
fmt.Println(*currentKeyMap) fmt.Println(*currentKeyMap)
fmt.Println(args)
for keys[args.ORDER[(*currentKeyMap)]][r].name != r { for keys[args.ORDER[(*currentKeyMap)]][r].name != r {
Press([8]byte{LCTRL, 0x00, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00}, hidg0) Press([8]byte{LCTRL, 0x00, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00}, hidg0)
*currentKeyMap++ *currentKeyMap++