Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
...
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