From 3bb7cad554c652a0dc9c6e49344098602f649d72 Mon Sep 17 00:00:00 2001 From: bel Date: Sun, 2 Apr 2023 10:28:12 -0600 Subject: [PATCH] debug --- src/device/input/button/button.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/device/input/button/button.go b/src/device/input/button/button.go index 32338aa..1810ab1 100644 --- a/src/device/input/button/button.go +++ b/src/device/input/button/button.go @@ -1,6 +1,12 @@ package button +import "fmt" + type Button struct { Char byte Down bool } + +func (button Button) String() string { + return fmt.Sprintf("%c:%v", button.Char, button.Down) +}