Created
December 30, 2018 19:08
-
-
Save midN/ebee1ef5eb751fa6b2d4d5581956bacc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
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