From 2c2b41876109618a6016453cedb339f8f72a8627 Mon Sep 17 00:00:00 2001 From: sago35 Date: Tue, 24 Dec 2024 20:14:32 +0900 Subject: [PATCH] Fix an issue where the `OutputKey` was incorrect when multiple Combos were configured --- 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]))