English Amiga Board


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

 
 
Thread Tools
Old 23 July 2014, 23:01   #1
LeftyFPB
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, 22:59   #2
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
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, 00:39   #3
LeftyFPB
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, 15:03   #4
jbl007
Registered User
 
Join Date: Mar 2013
Location: Leipzig/Germany
Posts: 466
Hi,
xmodmap is low level enough and also affects fs-uae. Type
Code:
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 00:13
Map spare gamepad buttons to left/right mouse buttons (for skipping intros) dreamkatcha support.FS-UAE 6 02 February 2013 23:03
Lock mouse in window and disk swapping (E-UAE) dar support.OtherUAE 1 24 January 2012 20:28
PAL & NTSC Via Holding Down Mouse Buttons crazyegg support.Hardware 12 13 April 2010 21:58
Unresponsive Mouse Buttons? Ze_ro support.Hardware 5 27 September 2006 18: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:57.

Top

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