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

@@ -1,6 +1,9 @@
package wrap
import "mayhem-party/src/device/input/raw"
import (
"mayhem-party/src/device/input/button"
"mayhem-party/src/device/input/raw"
)
type Protocol struct {
src raw.Raw
@@ -16,6 +19,6 @@ func (p Protocol) Close() {
p.src.Close()
}
func (p Protocol) Read() []Button {
func (p Protocol) Read() []button.Button {
panic(nil)
}