This commit is contained in:
lordwelch 2017-11-06 22:24:46 -07:00
parent 0d2c476db9
commit b7e273e787

View File

@ -50,7 +50,9 @@ 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) fmt.Println(args)
for keys[args.ORDER[(*currentKeyMap)]][r].name != r { kmap := args.ORDER[(*currentKeyMap)]
fmt.Println(kmap)
for keys[kmap][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++
if *currentKeyMap == len(keys) { if *currentKeyMap == len(keys) {