Swapping mouse buttons

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
rockyjones Offline
Junior Member
Posts: 1
Joined: Nov 2009
Reputation: 0
Post: #1
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
find quote
lkingscott Offline
Junior Member
Posts: 2
Joined: Jun 2010
Reputation: 0
Post: #2
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.
find quote
corcaigher Offline
Junior Member
Posts: 2
Joined: Apr 2011
Reputation: 0
Post: #3
I experience the same problem using LinuxMint 10 kde amd64.
find quote
corcaigher Offline
Junior Member
Posts: 2
Joined: Apr 2011
Reputation: 0
Post: #4
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
find quote
lkingscott Offline
Junior Member
Posts: 2
Joined: Jun 2010
Reputation: 0
Post: #5
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.
find quote
jhsrennie Offline
Team-XBMC Developer
Posts: 7,236
Joined: Nov 2008
Reputation: 118
Location: Chester, UK
Post: #6
In v11.0 the mouse buttons are configurable.

JR
find quote
jinxdone Offline
Junior Member
Posts: 13
Joined: Feb 2007
Reputation: 0
Post: #7
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>
(This post was last modified: 2012-05-09 07:49 by jinxdone.)
find quote
jhsrennie Offline
Team-XBMC Developer
Posts: 7,236
Joined: Nov 2008
Reputation: 118
Location: Chester, UK
Post: #8
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>
find quote
jinxdone Offline
Junior Member
Posts: 13
Joined: Feb 2007
Reputation: 0
Post: #9
@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..
(This post was last modified: 2012-05-09 22:54 by jinxdone.)
find quote