Skip to content

Commit

Permalink
Fix an issue where the OutputKey was incorrect when multiple Combos…
Browse files Browse the repository at this point in the history
… were configured (#63)
  • Loading branch information
sago35 authored Dec 24, 2024
1 parent 439c09e commit ea24640
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion keyboard.go
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ func (d *Device) Tick() error {
}
}
}
if matchCnt >= 2 && zero+matchCnt == 4 && matchCnt > matchMax {
if matchCnt >= 2 && zero+matchCnt == 4 && matchCnt > matchMax && len(d.combosPressed) == matchCnt {
matched = true
matchMax = matchCnt
d.combosKey = 0xFF000000 | uint32(keycodeViaToTGK(combo[4]))
Expand Down

0 comments on commit ea24640

Please sign in to comment.