Mouse Wheel Map Change - Solutions
#16
Here is a tweaked final cut that handles everything. Music, video, even the home screen for those in my situation. I tested every item individually. If you want to do something other then volume, simple global change would handle that. Hope I helped someone.

I also commented where each item controls so you can tweak it to your specifications easier then I had to. Mine was more global for a specific reason. But whatever your reasons; there ya are. Enjoy!

Code:
<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>
  <!-- Full Screen Video Controls -->
  <FullscreenVideo>
    <mouse>
      <wheelup>VolumeUp</wheelup>
      <wheeldown>VolumeDown</wheeldown>
    </mouse>
  </FullscreenVideo>
  <!-- Video On-Screen-Display Controls -->
  <VideoOSD>
    <mouse>
      <wheelup>VolumeUp</wheelup>
      <wheeldown>VolumeDown</wheeldown>
    </mouse>
  </VideoOSD>
  <!-- Music Visualization Controls -->
  <Visualisation>
    <mouse>
      <wheelup>VolumeUp</wheelup>
      <wheeldown>VolumeDown</wheeldown>
    </mouse>
  </Visualisation>
  <!-- Music On-Screen-Display Controls -->
  <MusicOSD>
    <mouse>
      <wheelup>VolumeUp</wheelup>
      <wheeldown>VolumeDown</wheeldown>
    </mouse>
  </MusicOSD>
  <!-- Home On-Screen-Display Controls (Master List for movies/music/etc) -->
  <Home>
    <mouse>
      <wheelup>VolumeUp</wheelup>
      <wheeldown>VolumeDown</wheeldown>
    </mouse>
  </Home>
  <!-- Picture Slideshow Controls -->
  <SlideShow>
    <mouse>
      <leftclick>Pause</leftclick>
      <rightclick>PreviousMenu</rightclick>
      <wheelup>PreviousPicture</wheelup>
      <wheeldown>NextPicture</wheeldown>
    </mouse>
  </SlideShow>
</keymap>
Reply
#17
Thank You very much for this. My wife and I both became annoyed with this quirk of XBMC. We usually flip the mouse upside down to prevent the OSD from popping up if the mouse is bumped while a video is playing. It's easier and more convenient then turning it off. Unfortunately doing so exposes the wheel to bumping, and either fast forwards or rewinds the video. Annoying.

Last night, our cat bumped the wheel with his paw, with the same effect. While I've thought about changing the setting before, last night decided it for me (and my wife, she was really into the show, she even cried twice due to the story we were watching).

We used (and still use) Potplayer for years before XBMC and mouse wheel for volume is the default setting, and now both our media players match mouse settings. Thank You.

And yes, I agree that people can be too short and rather rude in many forums. Complaining won't help. We have to remember that most people who answer questions feel they are giving "support" and usually tend to act like ... well, I won't say. I think that some of the cause for people's shortness is just poor mastery of the written English language. Maybe that's just me.

Oh well... Thank You.
Reply
#18
Hi
I wanted an easy solution, with everything as usual except in Video Fullscreen mode so i copied some you earlier solutions and tried to add a mouse mute addition.

<keymap>
<FullscreenVideo>
<mouse>
<middleclick>Mute</middleclick>
<wheelup>VolumeUp</wheelup>
<wheeldown>VolumeDown</wheeldown>
</mouse>
</FullscreenVideo>
<VideoOSD>
<mouse>
<wheelup>VolumeUp</wheelup>
<wheeldown>VolumeDown</wheeldown>
<middleclick>Mute</middleclick>
</mouse>
</VideoOSD>
<SlideShow>
<mouse>
<leftclick>Pause</leftclick>
<rightclick>PreviousMenu</rightclick>
<wheelup>PreviousPicture</wheelup>
<wheeldown>NextPicture</wheeldown>
</mouse>
</SlideShow>
</keymap>


I am a realitve beginner in this but I just wanted to add Mute in the middelclick/ wheelclick on the mouse.. but it doesnt work, what am I doing wrong? thanks.
Reply
#19
I think it's all in the specifics... I haven't had a chance to test this yet but give it a shot. I just took mine and added the middle-click mute to it for this test. I think you were very close, missed some of the global triggers, etc. But again I haven't tested this so let me know and I can actually test it when I'm home from the hospital later on. But I think it'll work for what you're after. BE SURE to take the entire code and put it into the file. Don't miss anything.

Code:
<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>
  <!-- Full Screen Video Controls -->
  <FullscreenVideo>
    <mouse>
      <middleclick>Mute</middleclick>
      <wheelup>VolumeUp</wheelup>
      <wheeldown>VolumeDown</wheeldown>
    </mouse>
  </FullscreenVideo>
  <!-- Video On-Screen-Display Controls -->
  <VideoOSD>
    <mouse>
      <middleclick>Mute</middleclick>
      <wheelup>VolumeUp</wheelup>
      <wheeldown>VolumeDown</wheeldown>
    </mouse>
  </VideoOSD>
  <!-- Music Visualization Controls -->
  <Visualisation>
    <mouse>
      <middleclick>Mute</middleclick>
      <wheelup>VolumeUp</wheelup>
      <wheeldown>VolumeDown</wheeldown>
    </mouse>
  </Visualisation>
  <!-- Music On-Screen-Display Controls -->
  <MusicOSD>
    <mouse>
      <middleclick>Mute</middleclick>
      <wheelup>VolumeUp</wheelup>
      <wheeldown>VolumeDown</wheeldown>
    </mouse>
  </MusicOSD>
  <!-- Home On-Screen-Display Controls (Master List for movies/music/etc) -->
  <Home>
    <mouse>
      <middleclick>Mute</middleclick>
      <wheelup>VolumeUp</wheelup>
      <wheeldown>VolumeDown</wheeldown>
    </mouse>
  </Home>
  <!-- Picture Slideshow Controls -->
  <SlideShow>
    <mouse>
      <leftclick>Pause</leftclick>
      <rightclick>PreviousMenu</rightclick>
      <wheelup>PreviousPicture</wheelup>
      <wheeldown>NextPicture</wheeldown>
    </mouse>
  </SlideShow>
</keymap>
Reply
#20
I got it to work now, thanks.

I turned it off and came back half an hour later and whoops it just worked. Big Grin
Reply
#21
You made the changes with XBMC running? Ya, you'd have to stop it and restart it most likely to get it to re-read the configuration changes you implimented. Good to hear it's all working now though.
Reply
#22
Yeah thanks, I am an ass.

But it works now so great.
Reply
#23
Hi

I want to make some changes to the default behaviour of the right and middle click buttons on the mouse in the "Global", home? menus... basically everything except for when a video/media is playing,

I want the right click to go back one step in the menus and the middle click to go to parent directory../ the beginning of the app/ program or if that is not possible, to the "home", start Kodi/Xbmc screen.

All I
can find is:
ParentDir - Go up a folder to the parent folder.
PreviousMenu - Go back to the previous menu screen.
back .Go back in navigation.


http://kodi.wiki/view/Keymap

But I cant seem to get them to work in my Mouse "map".. mouse.xml which is the one a couple of posts up in this thread.
Any help?
Reply
#24
I think you probably want "back" and "ActivateWindow(home)".

scott s.
.
maintainer of skin  Aeon MQ5 mods for post-Gotham Kodi releases:
Matrix see: Aeon MQ5 Mod Matrix release thread
Nexus see: Aeon MQ5 Mod Nexus release thread
Aeon MQ 5 skin and addon repo 11.1.0
Reply
#25
(2014-12-04, 02:52)scott967 Wrote: I think you probably want "back" and "ActivateWindow(home)".

scott s.
.

Thanks.

But what am I suppose to use.. I am a bit confused.
I want it to work everywhere except for when full screen video/OSD video.

<Home>
<mouse>
<middleclick>ActivateWindow(home)</middleclick>
<leftclick>back</leftclick>
</mouse>
</Home>

or

<Global>
<mouse>
<middleclick>ActivateWindow(home)</middleclick>
<leftclick>back</leftclick>
</mouse>
</Global>

Or something else..?
It doesn't work for me. (the way I want it to)
My right click stopped working in Homescreen.
Reply
#26
I know this post is a bit old but I had to post my thanks to both IamSGC and artrafael. I now have my uncles laptop running exactly as he requires. You people really saved the day..... and geeze the sexual tension between you two...... if I had a knife, and was so inclined, I would be able to cut it ;P
Reply
#27
When adjusting mouse.xml (adding sections), nothing happens. For example, I need to change channels while watching TV when the mouse wheel. I added to the file C: \ Program Files \ Kodi \ system \ keymaps \ mouse.xml:

<FullscreenLiveTV>
<mouse>
<wheelup>ChannelUp</wheelup>
<wheeldown>ChannelDown</wheeldown>
</mouse>
</FullscreenLiveTV>

Effect - zero. Why is that?
Reply
#28
Understood. It should be as follows:

<FullscreenLiveTV>
<mouse>
<wheelup>ChannelUp</wheelup>
<wheeldown>ChannelDown</wheeldown>
<mousemove>noop</mousemove>
</mouse>
</FullscreenLiveTV>
Reply
#29
hi guys,

appreciate this is an old thread, but, here am i, in 2017, on a fresh kodi install (kodi 17.1) and i have the same issue as the original poster: i.e. any slight bump of my mouse sends the video skipping off by whole minutes in a certain direction. Its crazy frustrating.

Its totally unworkable, makes me think my mouse (logitech anywhereMX) is crazy sensitive or has a supercharged wheel function otherwise id imagine the internet would be up in arms over this Smile

My mouse.xml is super simple right now, just the below:

Code:
<keymap>
  <Global>
    <mouse>
      <wheeldown>noop</wheeldown>
      <wheelup>noop</wheelup>
    </mouse>
  </Global>
</keymap>

Im on a mac so this mouse.xml lives here:
/Users/tv/Library/Application Support/Kodi/userdata/

but i cant get the damn thing to take. No change in behaviour after reloading kodi.

i have of course followed the steps in here http://kodi.wiki/view/Alternative_keymaps_for_mice but no matter what change i make, i cant get it to make any difference.

Any idea's anyone?
thanks!
Reply
#30
Thanks so much for this! Smile
Reply

Logout Mark Read Team Forum Stats Members Help
Mouse Wheel Map Change - Solutions0