Skip to content
This repository has been archived by the owner on Oct 7, 2023. It is now read-only.

Commit

Permalink
Fix: crash on set device 3-8 keymap
Browse files Browse the repository at this point in the history
  • Loading branch information
cyp0633 committed Aug 31, 2022
1 parent 0cf083b commit b1ba114
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions devices/const.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,36 +33,37 @@ var keymap = [][]string{
{}, // left blank intentionally
{"", "q", "e", "r", "w", "s", "a", "d", "enter"}, // device 0x01 (master)
{"", "a", "b", "c", "up", "down", "left", "right", "enter"}, // device 0x02
{}, // device 0x03
{}, // device 0x04
{}, // device 0x05
{}, // device 0x06
{}, // device 0x07
{}, // device 0x08
{"", "", "", "", "", "", "", "", ""}, // device 0x03
{"", "", "", "", "", "", "", "", ""}, // device 0x04
{"", "", "", "", "", "", "", "", ""}, // device 0x05
{"", "", "", "", "", "", "", "", ""}, // device 0x06
{"", "", "", "", "", "", "", "", ""}, // device 0x07
{"", "", "", "", "", "", "", "", ""}, // device 0x08
}

var keymap_preset map[string]([][]string) = map[string]([][]string){
"ForzaHorizon5": {
{}, // left blank intentionally
{"", "q", "e", "r", "w", "s", "a", "d", "enter"}, // device 0x01 (master)
{"", "a", "b", "c", "up", "down", "left", "right", "enter"}, // device 0x02
{}, // device 0x03
{}, // device 0x04
{}, // device 0x05
{}, // device 0x06
{}, // device 0x07
{}, // device 0x08
{"", "", "", "", "", "", "", "", ""}, // device 0x03
{"", "", "", "", "", "", "", "", ""}, // device 0x04
{"", "", "", "", "", "", "", "", ""}, // device 0x05
{"", "", "", "", "", "", "", "", ""}, // device 0x06
{"", "", "", "", "", "", "", "", ""}, // device 0x07
{"", "", "", "", "", "", "", "", ""}, // device 0x08
},

"GenshinImpact": {
{}, // left blank intentionally
{"", "e", "q", "space", "w", "s", "a", "d", "lclick"}, // device 0x01 (master)
{"", "1", "2", "3", "f", "", "", "", "rclick"}, // device 0x02
{}, // device 0x03
{}, // device 0x04
{}, // device 0x05
{}, // device 0x06
{}, // device 0x07
{}, // device 0x08
{"", "", "", "", "", "", "", "", ""}, // device 0x03
{"", "", "", "", "", "", "", "", ""}, // device 0x04
{"", "", "", "", "", "", "", "", ""}, // device 0x05
{"", "", "", "", "", "", "", "", ""}, // device 0x06
{"", "", "", "", "", "", "", "", ""}, // device 0x07
{"", "", "", "", "", "", "", "", ""}, // device 0x08
},
"ForestIceFire": {},
}

0 comments on commit b1ba114

Please sign in to comment.