split wrap protocol parsing into input.button

This commit is contained in:
bel
2023-03-24 20:25:15 -06:00
parent 9990273b19
commit b319ed7e6d
8 changed files with 72 additions and 27 deletions

View File

@@ -3,6 +3,7 @@ package wrap
import (
"context"
"log"
"mayhem-party/src/device/input/button"
"os"
"os/signal"
)
@@ -39,7 +40,7 @@ func NewRefresh(newWrap func() Wrap, ch <-chan os.Signal) *Refresh {
return result
}
func (r *Refresh) Read() []Button {
func (r *Refresh) Read() []button.Button {
return r.input.Read()
}