This commit is contained in:
lordwelch 2018-10-29 22:07:51 -07:00
parent 39176aac3c
commit cd5638b988
2 changed files with 2 additions and 0 deletions

View File

@ -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})
}

View File

@ -4,6 +4,7 @@ import (
"flag"
"fmt"
"os"
"timmy.narnian.us/hid/ghid"
)