Fixed all pressed return bug

This commit is contained in:
vcaesar 2020-10-06 11:24:07 -04:00
parent f76284ab75
commit d6d3b4663e

View File

@ -102,7 +102,9 @@ var (
func allPressed(pressed map[uint16]bool, keys ...uint16) bool {
for _, i := range keys {
// fmt.Println(i)
return !pressed[i]
if !pressed[i] {
return false
}
}
return true