change volume by mouse wheel
#1
Information 
can i change the default action of mouse wheel to changing volume?

i just downloaded and run the software but i can't find such options!
Reply
#2
(2016-08-18, 16:44)fireheart2008 Wrote: can i change the default action of mouse wheel to changing volume?

i just downloaded and run the software but i can't find such options!
Have a read about keymaps in the wiki.
If you make a file called mouse.xml with the following in it then it should work.
Code:
<?xml version="1.0" encoding="UTF-8"?>

<keymap>
  <global>
    <mouse>
      <wheelup>VolumeUp</wheelup>
      <wheeldown>VolumeDown</wheeldown>      
    </mouse>
  </global>
  <SlideShow>
    <mouse>
      <wheelup>VolumeUp</wheelup>
      <wheeldown>VolumeDown</wheeldown>
    </mouse>
  </SlideShow>
</keymap>
That goes in userdata/keymaps.
Reply
#3
Thanks man
I'll give it a try
Reply
#4
(2016-08-18, 16:58)trogggy Wrote:
(2016-08-18, 16:44)fireheart2008 Wrote: can i change the default action of mouse wheel to changing volume?

i just downloaded and run the software but i can't find such options!
Have a read about keymaps in the wiki.
If you make a file called mouse.xml with the following in it then it should work.
Code:
<?xml version="1.0" encoding="UTF-8"?>

<keymap>
<global>
<mouse>
<wheelup>VolumeUp</wheelup>
<wheeldown>VolumeDown</wheeldown>
</mouse>
</global>
<SlideShow>
<mouse>
<wheelup>VolumeUp</wheelup>
<wheeldown>VolumeDown</wheeldown>
</mouse>
</SlideShow>
</keymap>
That goes in userdata/keymaps. 
I've been fiddling with keymaps and this is an issue that's been bothering me for awhile.

I want to use the scroll wheel on the mouse to control the volume of a show or movie I'm watching.

The suggestion above does work. I tried it.

Problem is, it maps the scroll wheel to that function for the entire of Kodi. Not just while watching something.

IE: When watching a show or movie, working the scroll wheel brings up a white speaker in a circle and the circle shows the volume being lowered or raised.

Problem is, is also does it when in the "TV Shows" menu. You're looking at all the images of the shows on the sever, you want to scroll down though the list to bring up others but all you end up doing is turning the volume down.

This is because it's been mapped as a "global" function.

I tried switching that out to "fullscreenvideo" but it doesn't work at all then. Whether in fullscreen video or not.
The scroll wheel reverts to it's default function of seeking within the show/movie you're watching.

Any suggestions would be appreciated.
Reply
#5
(2020-02-20, 19:09)Sp^rky Wrote:  

NOTE: I should have included the file....

mouse.xml in the correct directory.

<?xml version="1.0" encoding="UTF-8"?>

<!-- Button Ids: -->
<!-- 0: left -->
<!-- 1: right -->
<!-- 2: middle -->
<!-- 3/4/5/6: extra -->

<keymap>
   <global>
      <mouse>
         <longclick id="1">togglefullscreen</longclick>
      </mouse>
   </global>

  <fullscreenvideo>
    <mouse>
      <wheeldown>VolumeDown</wheeldown>
      <wheelup>VolumeUp</wheelup>
    </mouse>
  </fullscreenvideo>
</keymap>

NOTE2: The fullscreen toggle works fine.
The Volume down/up does NOT work at all with this.
If I change the <fullscreenvideo>/</fullscreenvideo> to <global>/</global> it DOES work but it works everywhere in KODI. Incluing main menus, option and setup screens, etc. etc.
It's not confined to only woirking when watching a show/movie or listening to music.
Reply
#6
(2020-02-20, 19:16)Sp^rky Wrote:
(2020-02-20, 19:09)Sp^rky Wrote:  

NOTE: I should have included the file....

mouse.xml in the correct directory.

<?xml version="1.0" encoding="UTF-8"?>

<!-- Button Ids: -->
<!-- 0: left -->
<!-- 1: right -->
<!-- 2: middle -->
<!-- 3/4/5/6: extra -->

<keymap>
   <global>
      <mouse>
         <longclick id="1">togglefullscreen</longclick>
      </mouse>
   </global>

  <fullscreenvideo>
    <mouse>
      <wheeldown>VolumeDown</wheeldown>
      <wheelup>VolumeUp</wheelup>
    </mouse>
  </fullscreenvideo>
</keymap>

NOTE2: The fullscreen toggle works fine.
The Volume down/up does NOT work at all with this.
If I change the <fullscreenvideo>/</fullscreenvideo> to <global>/</global> it DOES work but it works everywhere in KODI. Incluing main menus, option and setup screens, etc. etc.
It's not confined to only woirking when watching a show/movie or listening to music.  
This Mouse.xml keymap might help.
I used it for PVR LiveTV and Video navigation with 3 button wireless mouse(mouse wheel is button 2)

<?xml version="1.0" encoding="UTF-8"?>

<!-- Button Ids: -->
<!-- *** IPTV Live TV (Functions only in Full Screen while no OSD Visible) -->
<!-- 0: left (1 Click - returns to last ch.)
(LongPress - TV Ch. Keypad Dialog) -->
<!-- 1: right (1 Click - Back/Previous Menu/or Ch.List/EPG) (LongPress - OSD OnScreen Display) -->
<!-- 2: middle (Stops Ch./ Stops "Working..." "Death Spin"
(wheel scrolls Full Page up/dn in EPG and Ch.List)
(wheel is Volume up/down while in full Screen TV)-->
<!-- Mouse movement functions are cancelled until OSD is Displayed-->

<!-- *** IPTV VOD/Video (Functions only in Full Screen while no OSD Visible) -->
<!-- 0: left (1 Click - Pause/Resume Video)-->
<!-- 1: right (1 Click - OSD OnScreen Display) -->
<!-- 2: middle (Stops Video)-->
<!-- (wheel scrolls Timeline while OSD displayed)-->
<!-- (wheel is Volume up/down while in full Screen)-->
<!-- Mouse movement functions are cancelled until OSD is Displayed-->

<keymap>
<global>
<mouse>
<leftclick>leftclick</leftclick>
<rightclick>rightclick</rightclick>
<middleclick>Stop</middleclick>
<doubleclick id="0">doubleclick</doubleclick>
<longclick id="0">contextmenu</longclick>

<wheeldown>wheeldown</wheeldown>
<wheelup>wheelup</wheelup>
<mousedrag>mousedrag</mousedrag>
<mousemove>mousemove</mousemove>
</mouse>
</global>
<tvguide>
<mouse>
<wheelup>PageUp</wheelup>
<wheeldown>PageDown</wheeldown>
</mouse>
</tvguide>
<tvchannels>
<mouse>
<wheelup>PageUp</wheelup>
<wheeldown>PageDown</wheeldown>
<longclick id="0">Number1</longclick>
</mouse>
</tvchannels>
<FullscreenLiveTV>
<mouse>
<leftclick>Number0</leftclick>
<rightclick>PreviousMenu</rightclick>
<longclick id="0">Number1</longclick>
<longclick id="1">OSD</longclick>
<mousemove>noop</mousemove>
<wheeldown>VolumeDown</wheeldown>
<wheelup>VolumeUp</wheelup>
</mouse>
</FullscreenLiveTV>
<FullscreenVideo>
<mouse>
<leftclick>Pause</leftclick>
<rightclick>OSD</rightclick>
<mousemove>noop</mousemove>
<wheeldown>VolumeDown</wheeldown>
<wheelup>VolumeUp</wheelup>
</mouse>
</FullscreenVideo>
</keymap>

/shooty
Reply

Logout Mark Read Team Forum Stats Members Help
change volume by mouse wheel0