From ea24640cfe6e1a8ec685d9def7440b2904f24aeb Mon Sep 17 00:00:00 2001 From: sago35 Date: Tue, 24 Dec 2024 20:23:33 +0900 Subject: [PATCH] Fix an issue where the `OutputKey` was incorrect when multiple Combos were configured (#63) --- keyboard.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyboard.go b/keyboard.go index 398ce24..c6b202d 100644 --- a/keyboard.go +++ b/keyboard.go @@ -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]))