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) +}