protocol should be pkg

This commit is contained in:
bel
2023-03-24 20:05:55 -06:00
parent ea7f2d8932
commit 9990273b19
4 changed files with 39 additions and 6 deletions

View File

@@ -0,0 +1,21 @@
package wrap
import "mayhem-party/src/device/input/raw"
type Protocol struct {
src raw.Raw
}
func NewProtocol(src raw.Raw) Protocol {
return Protocol{
src: src,
}
}
func (p Protocol) Close() {
p.src.Close()
}
func (p Protocol) Read() []Button {
panic(nil)
}