debug
parent
44ec540db3
commit
3bb7cad554
|
|
@ -1,6 +1,12 @@
|
||||||
package button
|
package button
|
||||||
|
|
||||||
|
import "fmt"
|
||||||
|
|
||||||
type Button struct {
|
type Button struct {
|
||||||
Char byte
|
Char byte
|
||||||
Down bool
|
Down bool
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (button Button) String() string {
|
||||||
|
return fmt.Sprintf("%c:%v", button.Char, button.Down)
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue