This is one of those embarrassing things that sometimes happen... While I was testing some customised mouse configuration actions I found out that I just had to click the right mouse button during playback for the OSD to go away immediately! And this was not some change I had just made, I removed all the xml files I created inside keymaps folder and the action was still available. Been using Kodi for so many years and the solution was always there for me to use. Embarrassing.
Nevertheless if someone wants the OSD not to appear when you move the mouse during playback and make it only appear if the left mouse button is clicked, just create a .xml file inside kodi/userdata/keymaps/ folder, name it whatever you want, I named my new file "Mouse noOSDmove.xml", and copy and paste what's in here
http://kodi.wiki/view/Alternative_keymap...me_and_OSD to that file and save it. That's it, restart Kodi for it to work.
I'll also paste it here, we never know if the link can break some day:
Code:
<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>
<wheeldown>VolumeDown</wheeldown>
<wheelup>VolumeUp</wheelup>
</mouse>
</VideoOSD>
<Visualisation>
<mouse>
<mousedrag>noop</mousedrag>
<mousemove>noop</mousemove>
<wheeldown>VolumeDown</wheeldown>
<wheelup>VolumeUp</wheelup>
</mouse>
</Visualisation>
<MusicOSD>
<mouse>
<mousedrag>mousedrag</mousedrag>
<mousemove>mousemove</mousemove>
<wheeldown>VolumeDown</wheeldown>
<wheelup>VolumeUp</wheelup>
</mouse>
</MusicOSD>
</keymap>
Off topic but since I'm mentioning mouse actions and xml files, I also have a separate file (which I do not wan't to mix in the file I just mentioned for future editing purposes) for using middle mouse button click to toggle between Kodi windowed and fullscreen. If you also wanna have it just create another file inside kodi/userdata/keymaps/ folder, name it something like "Mouse midbutfullscreen.xml" or whatver you want, put this code inside it:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!-- Button Ids: -->
<!-- 0: left -->
<!-- 1: right -->
<!-- 2: middle -->
<!-- 3/4/5/6: extra -->
<keymap>
<global>
<mouse>
<click id="2">togglefullscreen</click>
</mouse>
</global>
</keymap>
and save it and restart Kodi to be able to use it.
@
axbmcuser thank you so much for your help, I could only find this (and other) mouse script because I searched for "MouseMove" as you told me to.