Alternative keymaps for mice: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
Line 5: Line 5:
* Disables mouse movement for fullscreen video.
* Disables mouse movement for fullscreen video.
* Click anywhere to bring up the on-screen-controls, which will re-enable mouse movement.
* Click anywhere to bring up the on-screen-controls, which will re-enable mouse movement.
* {{note|You can right-click to manually hide the on-screen-controls instead of waiting for it to disappear.}}
:: {{note|You can right-click to manually hide the on-screen-controls instead of waiting for it to disappear.}}
* Scroll wheel controls volume when on fullscreen video playback. <wheeldown> and <wheelup> can be moved to <global> if you want it to always control volume.


;Keymap
;Keymap
Line 11: Line 12:
<syntaxhighlight lang="xml" enclose="div">
<syntaxhighlight lang="xml" enclose="div">
<keymap>
<keymap>
  <Global>
    <mouse>
<!--    <wheeldown>VolumeDown</wheeldown> --> <!-- Remove arrows to enable global volume control -->
<!--    <wheelup>VolumeUp</wheelup> --> <!-- Remove arrows to enable global volume control -->
    </mouse>
  </Global>
   <FullScreenVideo>
   <FullScreenVideo>
     <mouse>
     <mouse>
Line 23: Line 30:
       <mousedrag>mousedrag</mousedrag>
       <mousedrag>mousedrag</mousedrag>
       <mousemove>mousemove</mousemove>
       <mousemove>mousemove</mousemove>
      <wheeldown>VolumeDown</wheeldown>
      <wheelup>VolumeUp</wheelup>
     </mouse>
     </mouse>
   </VideoMenu>
   </VideoMenu>

Revision as of 01:56, 10 January 2016

Alternative keymaps for mice and remotes with airmouse features, as suggested by the community.

Keymap 1

What it does
  • Disables mouse movement for fullscreen video.
  • Click anywhere to bring up the on-screen-controls, which will re-enable mouse movement.
Note: You can right-click to manually hide the on-screen-controls instead of waiting for it to disappear.
  • Scroll wheel controls volume when on fullscreen video playback. <wheeldown> and <wheelup> can be moved to <global> if you want it to always control volume.
Keymap
Cut and paste the following into a new text document and save as NoMouseMove.xml and place in userdata/keymaps/
<keymap>
  <Global>
    <mouse>
 <!--     <wheeldown>VolumeDown</wheeldown> --> <!-- Remove arrows to enable global volume control -->
 <!--     <wheelup>VolumeUp</wheelup> --> <!-- Remove arrows to enable global volume control -->
    </mouse>
  </Global>
  <FullScreenVideo>
    <mouse>
      <mousedrag>noop</mousedrag>
      <mousemove>noop</mousemove>
      <wheeldown>VolumeDown</wheeldown>
      <wheelup>VolumeUp</wheelup>
    </mouse>
  </FullScreenVideo>
  <VideoMenu>
    <mouse>
      <mousedrag>mousedrag</mousedrag>
      <mousemove>mousemove</mousemove>
      <wheeldown>VolumeDown</wheeldown>
      <wheelup>VolumeUp</wheelup>
    </mouse>
  </VideoMenu>
  <VideoOSD>
    <mouse>
      <mousedrag>mousedrag</mousedrag>
      <mousemove>mousemove</mousemove>
    </mouse>
  </VideoOSD>
</keymap>

Keymap 2

What it does
  • Completely disables mouse movement.
Keymap
Cut and paste the following into a new text document and save as NoMouseMove.xml and place in userdata/keymaps/
<keymap>
  <global>
    <mouse>
      <mousedrag>noop</mousedrag>
      <mousemove>noop</mousemove>
    </mouse>
  </global>
</keymap>