debugs
This commit is contained in:
@@ -2,6 +2,7 @@ package src
|
||||
|
||||
import (
|
||||
"context"
|
||||
"log"
|
||||
"mayhem-party/src/device/input"
|
||||
"mayhem-party/src/device/output"
|
||||
"mayhem-party/src/device/output/key"
|
||||
@@ -37,6 +38,9 @@ func Main(ctx context.Context) error {
|
||||
state := map[key.Key]bool{}
|
||||
for block() {
|
||||
delta := reader.Read()
|
||||
if os.Getenv("DEBUG") == "true" {
|
||||
log.Printf("src.Main.reader.Read(): %+v", delta)
|
||||
}
|
||||
for _, button := range delta {
|
||||
state[key.FromChar(button.Char)] = button.Down
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user