keys.go 647 B

123456789101112131415161718192021222324252627282930
  1. package main
  2. func GetKeys() map[string]string {
  3. keys := make(map[string]string)
  4. keys["home"] = "home"
  5. keys["rev"] = "rev"
  6. keys["fwd"] = "fwd"
  7. keys["left"] = "left"
  8. keys["right"] = "right"
  9. keys["down"] = "down"
  10. keys["up"] = "up"
  11. keys["play"] = "play"
  12. keys["ok"] = "select"
  13. keys["back"] = "back"
  14. keys["instant-replay"] = "instantreplay"
  15. keys["info"] = "info"
  16. keys["backspace"] = "backspace"
  17. keys["search"] = "search"
  18. keys["enter"] = "enter"
  19. keys["power"] = "poweroff"
  20. keys["vol+"] = "volumeup"
  21. keys["vol-"] = "volumedown"
  22. keys["mute"] = "volumemute"
  23. keys["chan+"] = "channelup"
  24. keys["chan-"] = "channeldown"
  25. return keys
  26. }