HowTo: Openelec Mouse Control Scroll Wheel Volume

Step-by-Step descriptions of how to do things.
Post Reply
User avatar
^rooker
Site Admin
Posts: 1481
Joined: Fri Aug 29, 2003 8:39 pm

HowTo: Openelec Mouse Control Scroll Wheel Volume

Post by ^rooker »

This HowTo is a mere copy of Steptoes Yard's HowTo "Openelec Mouse Control Scroll Wheel Volume" with maybe a few additional notes/comments.
Basically it's also listed here, so I don't lose the link ;)

The following custom keypmap will allow the mouse to operate normally with the scroll wheel seeking etc. whilst the menu is visible, but once the playback is in full screen mode, it will disable mouse movement inputs until a button is pressed, and also will allow the scroll wheel to adjust the volume up and down.
Additionally, long-clicking the left mouse-button will toggle Play/Pause, whereas long-clicking the right mouse button triggers "Stop".

Copy the following text and paste into your favorite text editor, then save as "mouse.xml"

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<keymap>
  <global>
    <mouse>
      <leftclick>leftclick</leftclick>
      <middleclick>middleclick</middleclick>
      <rightclick>rightclick</rightclick>
      <doubleclick>doubleclick</doubleclick>
      <wheeldown>wheeldown</wheeldown>
      <wheelup>wheelup</wheelup>
      <mousedrag>mousedrag</mousedrag>
      <mousemove>mousemove</mousemove>
    </mouse>
  </global>
  <SlideShow>
    <mouse>
      <leftclick>Pause</leftclick>
      <rightclick>PreviousMenu</rightclick>
      <wheelup>PreviousPicture</wheelup>
      <wheeldown>NextPicture</wheeldown>
    </mouse>
  </SlideShow>
  <Fullscreenvideo>
    <mouse>
      <longclick id="1">pause</longclick>
      <longclick id="2">stop</longclick>
      <wheelup>VolumeUp</wheelup>
      <wheeldown>VolumeDown</wheeldown>
      <mousemove>noop</mousemove>
    </mouse>
  </Fullscreenvideo>
</keymap>
Now, SSH to your OpenELEC installation (you might have to enable SSH service first).
If you want that mouse mapping to be global, copy your new "mouse.xml" into ".kodi/userdata/keymaps/mouse.xml".

Works like a charm :)
Thanks Steptoes Yard!

Additional links:
Jumping out of an airplane is not a basic instinct. Neither is breathing underwater. But put the two together and you're traveling through space!
Post Reply