split button and parse packages

This commit is contained in:
bel
2023-03-25 22:52:09 -06:00
parent bd5654128e
commit 373d8be1a0
13 changed files with 59 additions and 50 deletions

View File

@@ -3,6 +3,7 @@ package input
import (
"context"
"mayhem-party/src/device/input/button"
"mayhem-party/src/device/input/parse"
"mayhem-party/src/device/input/raw"
"mayhem-party/src/device/input/wrap"
)
@@ -14,7 +15,7 @@ type Input interface {
func New(ctx context.Context) Input {
src := raw.New(ctx)
return wrap.New(ctx, func() button.Parser {
return button.New(ctx, src)
return wrap.New(ctx, func() wrap.Wrap {
return parse.New(ctx, src)
})
}