/system/keymaps/mouse.xml

http://github.com/xbmc/xbmc · XML · 68 lines · 41 code · 0 blank · 27 comment · 0 complexity · 2059eff20a94d658c0914257ffe6e871 MD5 · raw file

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- This file contains the mapping of mouse keys to actions within Kodi. -->
  3. <!-- -->
  4. <!-- The format is: -->
  5. <!-- <window> -->
  6. <!-- <device> -->
  7. <!-- <button>action</button> -->
  8. <!-- </device> -->
  9. <!-- </window> -->
  10. <!-- -->
  11. <!-- The <global> section is a fall through - they will only be used if the button is -->
  12. <!-- not used in the current window's section. -->
  13. <!-- -->
  14. <!-- Actions can be built-in functions. -->
  15. <!-- eg <middleclick>ActivateWindow(Music)</middleclick> -->
  16. <!-- would automatically go to Music on the press of the middle mouse button. -->
  17. <!-- -->
  18. <!-- -->
  19. <!-- An empty action removes the corresponding mapping from default and parent keymaps. -->
  20. <!-- This is different from a "noop" action, which disables a button. -->
  21. <!-- -->
  22. <!-- Button Ids: -->
  23. <!-- 0: left -->
  24. <!-- 1: right -->
  25. <!-- 2: middle -->
  26. <!-- 3/4/5/6: extra -->
  27. <!-- -->
  28. <!-- More documentation on keymaps can be found on http://kodi.wiki/view/keymaps -->
  29. <keymap>
  30. <global>
  31. <mouse>
  32. <leftclick>leftclick</leftclick>
  33. <rightclick>rightclick</rightclick>
  34. <middleclick>middleclick</middleclick>
  35. <doubleclick id="0">doubleclick</doubleclick>
  36. <longclick id="0">contextmenu</longclick>
  37. <longclick id="2">Menu</longclick> <!-- access to the blade menu via long right-click -->
  38. <wheeldown>wheeldown</wheeldown>
  39. <wheelup>wheelup</wheelup>
  40. <mousedrag>mousedrag</mousedrag>
  41. <mousedragend>mousedragend</mousedragend>
  42. <mousemove>mousemove</mousemove>
  43. </mouse>
  44. </global>
  45. <SlideShow>
  46. <mouse>
  47. <leftclick>Pause</leftclick>
  48. <rightclick>PreviousMenu</rightclick>
  49. <wheelup>PreviousPicture</wheelup>
  50. <wheeldown>NextPicture</wheeldown>
  51. </mouse>
  52. </SlideShow>
  53. <FullscreenVideo>
  54. <mouse>
  55. <rightclick>Info</rightclick>
  56. </mouse>
  57. </FullscreenVideo>
  58. <FullscreenGame>
  59. <mouse>
  60. <rightclick>Info</rightclick>
  61. </mouse>
  62. </FullscreenGame>
  63. <contextmenu> <!-- Give a way out of the context menu without actually having to select something. -->
  64. <mouse>
  65. <rightclick>back</rightclick>
  66. </mouse>
  67. </contextmenu>
  68. </keymap>