can exit while reading from keyboard
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package output
|
||||
|
||||
import (
|
||||
"context"
|
||||
"mayhem-party/src/device/output/key"
|
||||
"os"
|
||||
)
|
||||
@@ -10,7 +11,7 @@ type Output interface {
|
||||
Press(...key.Key)
|
||||
}
|
||||
|
||||
func New() Output {
|
||||
func New(ctx context.Context) Output {
|
||||
if os.Getenv("OUTPUT_KEYBOARD") == "true" {
|
||||
return NewKeyboard()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user