Skip to content

Instantly share code, notes, and snippets.

@midN
Created December 30, 2018 19:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save midN/ebee1ef5eb751fa6b2d4d5581956bacc to your computer and use it in GitHub Desktop.
Save midN/ebee1ef5eb751fa6b2d4d5581956bacc to your computer and use it in GitHub Desktop.
...
func Home() {
keyPress(4, 15)
}
func CycleInput() {
keyPress(7, 1)
}
func keyPress(codeset int, code int) {
msg := &RequestData{
Keylists: []Keylist{
Keylist{
CodeSet: codeset,
Code: code,
Action: "KEYPRESS",
},
},
}
helpers.GenerateRequest("PUT", "key_command/", msg, false)
}
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment