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