2021-01-03, 16:58
Hello everyone,
I am running Kodi Leia on a Raspberry Pi and would llike to map my mouperly.
I would like my wheel to work lllllike the normal left/right on a remote control and also use my buttons 4 & 5 as left and right.
I would also like to prevent mouse movement from showing the OSD and would like to use my mouse wheel button as play/pause.
I created a mouse.xml based on the wiki but it seems that this Mouse.xml is being ignored.
I placed it in /home/pi/.kodi/userdata and in /home/pi/.kodi/userdata/keymaps, but both were ignored. I tried calling it keeeeeeeeymap.xml and Mouse.xml. Both were ignored. Am I doing something wrong?
I also instlled comput as peripheral in the settings menu and set my button 4 and 5.
Here is my xml
I am running Kodi Leia on a Raspberry Pi and would llike to map my mouperly.
I would like my wheel to work lllllike the normal left/right on a remote control and also use my buttons 4 & 5 as left and right.
I would also like to prevent mouse movement from showing the OSD and would like to use my mouse wheel button as play/pause.
I created a mouse.xml based on the wiki but it seems that this Mouse.xml is being ignored.
I placed it in /home/pi/.kodi/userdata and in /home/pi/.kodi/userdata/keymaps, but both were ignored. I tried calling it keeeeeeeeymap.xml and Mouse.xml. Both were ignored. Am I doing something wrong?
I also instlled comput as peripheral in the settings menu and set my button 4 and 5.
Here is my xml
xml:<?xml version="1.0" encoding="UTF-8"?>
<!-- This file contains the mapping of mouse keys to actions within Kodi. -->
<!-- -->
<!-- The format is: -->
<!-- <window> -->
<!-- <device> -->
<!-- <button>action</button> -->
<!-- </device> -->
<!-- </window> -->
<!-- -->
<!-- The <global> section is a fall through - they will only be used if the button is -->
<!-- not used in the current window's section. -->
<!-- -->
<!-- Actions can be built-in functions. -->
<!-- eg <middleclick>ActivateWindow(Music)</middleclick> -->
<!-- would automatically go to Music on the press of the middle mouse button. -->
<!-- -->
<!-- -->
<!-- An empty action removes the corresponding mapping from default and parent keymaps. -->
<!-- This is different from a "noop" action, which disables a button. -->
<!-- -->
<!-- Button Ids: -->
<!-- 0: left -->
<!-- 1: right -->
<!-- 2: middle -->
<!-- 3/4/5/6: extra -->
<!-- -->
<!-- More documentation on keymaps can be found on http://kodi.wiki/view/keymaps -->
<keymap>
<global>
<mouse>
<leftclick>leftclick</leftclick>
<rightclick>rightclick</rightclick>
<middleclick>pause</middleclick>
<doubleclick id="0">doubleclick</doubleclick>
<longclick id="0">contextmenu</longclick>
<longclick id="2">Menu</longclick> <!-- access to the blade menu via long right-click -->
<wheeldown>wheeldown</wheeldown>
<wheelup>wheelup</wheelup>
<mousedrag>mousedrag</mousedrag>
<mousedragend>mousedragend</mousedragend>
<mousemove>mousemove</mousemove>
<click id="4">left</click id="4">
<click id="5">right</click id="5">
</mouse>
</global>
<FullScreenVideo>
<mouse>
<mousedrag>noop</mousedrag>
<mousemove>noop</mousemove>
<wheeldown>left</wheeldown>
<wheelup>right</wheelup>
<click id="4">left</click id="4">
<click id="5">right</click id="5">
</mouse>
</FullScreenVideo>
<VideoMenu>
<mouse>
<wheeldown>left</wheeldown>
<wheelup>right</wheelup>
<click id="4">left</click id="4">
<click id="5">right</click id="5">
</mouse>
</VideoMenu>
<VideoOSD>
<mouse>
<wheeldown>left</wheeldown>
<wheelup>right</wheelup>
<click id="4">left</click id="4">
<click id="5">right</click id="5">
</mouse>
</VideoOSD>
</keymap>