split wrap protocol parsing into input.button
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user