English Amiga Board

Go Back   English Amiga Board > Support > support.FS-UAE

Thread Tools
Old 24 July 2014, 00:01   #1
Registered User

Join Date: Jul 2014
Location: Mobile, AL
Posts: 16
Linux not swapping mouse buttons in emulation

I use an external wireless mouse with a MacBook Pro, which is set up to dual-boot into OS X and Linux Mint 17. The left and right buttons are swapped. I'm not running any special mouse drivers on either OS X or Linux; the buttons are swapped in system preferences.

In OS X, the swapped buttons work just fine in Amiga emulation. In Linux, however, the buttons revert to the default (primary click on left, secondary click on right) in the emulated Amiga environment, and only in the Amiga emulation.

I would have thought the Linux mouse button settings would be global, the way they are in OS X. I guess that's not the case. Is there a setting that I'm missing somewhere? I know I can get a mouse utility for the Amiga to swap the buttons, but I think it would be better for it just to pick up the system setting.
LeftyFPB is offline  
Old 28 July 2014, 23:59   #2
FS-UAE Developer
FrodeSolheim's Avatar
Join Date: Dec 2011
Location: Førde, Norway
Age: 40
Posts: 3,990
Hi, unless the operating system swaps the buttons on a low level, it isn't feasible for FS-UAE to pick up such a setting from all possible desktop environments. So it would only work if the OS swaps the buttons before the button events reaches FS-UAE. Presumably, OS X does swap the buttons on a low level (FS-UAE is not aware of the buttons being swapped).

But it wouldn't be very hard for me to add a user-configurable setting for swapping the left and right mouse buttons, if that is desirable...
FrodeSolheim is offline  
Old 30 July 2014, 01:39   #3
Registered User

Join Date: Jul 2014
Location: Mobile, AL
Posts: 16
That would be great if it's not very difficult to do. The one button-swapping commodity I found doesn't work consistently in AmiKit. There is another, but it modifies the boot block. Not very helpful if you're using a directory for a hard drive.
LeftyFPB is offline  
Old 30 July 2014, 16:03   #4
Registered User
Join Date: Mar 2013
Location: Leipzig/Germany
Posts: 442
xmodmap is low level enough and also affects fs-uae. Type
xmodmap -e "pointer = 3 2 1"
in a terminal and you are done.
jbl007 is offline  

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Disk swapping on arcade machine with only a few fire buttons geecab support.WinUAE 10 22 July 2014 01:13
Map spare gamepad buttons to left/right mouse buttons (for skipping intros) dreamkatcha support.FS-UAE 6 03 February 2013 00:03
Lock mouse in window and disk swapping (E-UAE) dar support.OtherUAE 1 24 January 2012 21:28
PAL & NTSC Via Holding Down Mouse Buttons crazyegg support.Hardware 12 13 April 2010 22:58
Unresponsive Mouse Buttons? Ze_ro support.Hardware 5 27 September 2006 19:17

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 22:35.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, vBulletin Solutions Inc.
Page generated in 0.07261 seconds with 15 queries