diff --git a/ghid/keyboard.go b/ghid/keyboard.go index c780a2c..daba5d1 100644 --- a/ghid/keyboard.go +++ b/ghid/keyboard.go @@ -175,6 +175,7 @@ func delay() { func Press(press [8]byte, file io.Writer) { file.Write(press[:]) + Hidg0.(syncer).Sync() time.Sleep(DefaultDelay) file.Write([]byte{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}) } diff --git a/main.go b/main.go index 99197d8..c853b56 100644 --- a/main.go +++ b/main.go @@ -4,6 +4,7 @@ import ( "flag" "fmt" "os" + "timmy.narnian.us/hid/ghid" )