Kodi Community Forum
Swapping mouse buttons - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: Swapping mouse buttons (/showthread.php?tid=64397)



Swapping mouse buttons - rockyjones - 2009-12-17

In Ubuntu, I have my mouse buttons swapped (I'm left handed). When running XBMC Camelot, the button swap is not "honored". Is there any way to get XBMC to correctly use the mouse as specified in Ubuntu's setup or tell XBMC to swap the left and right buttons for the mouse?

Thanks


Snap - lkingscott - 2010-06-11

This is driving me nuts... I have been using XBMC for months, it's great, but for the non standard mouse support on Ubuntu.
I use combined RF keyboard and trackball. The trackball/mouse buttons are positioned such that it's just more natural that the right key should perform the left key functionality.

Any help would be gratefully appreciated.


- corcaigher - 2011-04-04

I experience the same problem using LinuxMint 10 kde amd64.


Left handed mouse support - corcaigher - 2011-05-28

This is odd because when running xbmc under sabayon or pclinuxos, xbmc recognizes my mouse settings. It just doesn't make sense that it works on some distros but not others.

I have also noticed that I cannot get IEC958 digital output when using xbmc on Mint; it worked on the other distros. No


More info - lkingscott - 2011-10-08

More info on this topic, .

When XBMC is operating as a window, then the mouse settings are honoured.

When operating in full screen mode they are not.

I am running Ubuntu Lucid 64 bit.


- jhsrennie - 2011-10-08

In v11.0 the mouse buttons are configurable.

JR


RE: Swapping mouse buttons - jinxdone - 2012-05-09

Sorry to dig up such an old post, but I was looking how to do this earlier today and this thread is the first match on google, so i'll post instructions how to do this here..

Add the following in your .xbmc/userdata/keymaps/keyboard.xml;

Code:
<keymap>
  <global>
    <mouse>
      <leftclick>ContextMenu</leftclick>
      <rightclick>Select</rightclick>
    </mouse>
  </global>
</keymap>



RE: Swapping mouse buttons - jhsrennie - 2012-05-09

A couple of quick comments:

1. I advise creating a separate .xbmc/userdata/keymaps/mouse.xml to hold mouse mappings. XBMC doesn't actually care what the files are called and reads every XML file it finds in the keymaps directory. However keeping mouse mappings ina separate file makes them easier to maintain.

2. To just swap the mouse buttons you can use:

Code:
<keymap>
  <global>
    <mouse>
      <rightclick>leftclick</rightclick>
      <leftclick>rightclick</leftclick>
    </mouse>
  </global>
</keymap>



RE: Swapping mouse buttons - jinxdone - 2012-05-09

@jhsrennie

Thanks for the comments, I was just re-installing xbmc for the first time in a long time, a lot of things have changed since then..