key.To/FromChar

This commit is contained in:
Bel LaPointe
2023-03-02 09:25:19 -07:00
parent 5d30297ec4
commit 5f59054366
10 changed files with 135 additions and 44 deletions

View File

@@ -4,6 +4,7 @@ package output_test
import (
"mayhem-party/src/device/output"
"mayhem-party/src/device/output/key"
"testing"
"time"
)
@@ -13,7 +14,7 @@ func TestKeyboardIntegration(t *testing.T) {
t.Cleanup(kb.Close)
t.Log("pressing 'a' for 5 seconds")
kb.Press(output.A)
kb.Press(key.A)
for i := 0; i < 5; i++ {
t.Logf("\t%d...", 5-i)
time.Sleep(time.Second)