From cd5638b9884bd6cb6627b7fb4dd5b89e55367535 Mon Sep 17 00:00:00 2001 From: lordwelch Date: Mon, 29 Oct 2018 22:07:51 -0700 Subject: [PATCH] sync --- ghid/keyboard.go | 1 + main.go | 1 + 2 files changed, 2 insertions(+) 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" )