protocol should be pkg
This commit is contained in:
21
src/device/input/wrap/protocol.go
Normal file
21
src/device/input/wrap/protocol.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user