English Amiga Board


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

 
 
Thread Tools
Old 02 February 2013, 20:28   #1
dreamkatcha
I've got a new byline
 
dreamkatcha's Avatar
 
Join Date: Mar 2002
Location: Manchester, UK
Posts: 1,219
Map spare gamepad buttons to left/right mouse buttons (for skipping intros)

Hi,

It occurred to me that it would be handy if I could map a couple of my spare joypad buttons to the left and right mouse buttons for skipping through trainer/intro screens. Is that possible with FS-UAE or should I use third party software like QJoyPad?

Last edited by FrodeSolheim; 02 February 2013 at 20:47. Reason: Updated title
dreamkatcha is offline  
Old 02 February 2013, 20:39   #2
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
Hi, good idea It should already be possible using something like this:
Code:
joystick_0_button_10 = action_joy_0_fire_button
joystick_0_button_11 = action_joy_0_2nd_button
joystick_1_button_10 = action_joy_0_fire_button
joystick_1_button_11 = action_joy_0_2nd_button
(This will map button 10 and 11 on your first two detected joysticks to the mouse buttons. I just made up the button numbers of course, replace with suitable button numbers).

But since these buttons numbers are effectively tied to specific gamepad/joystick models, a better choice may be to map it like this:

Code:
logitech_dual_action_usb_button_10 = action_joy_0_fire_button
logitech_dual_action_usb_button_11 = action_joy_0_2nd_button
logitech_dual_action_usb_2_button_10 = action_joy_0_fire_button
logitech_dual_action_usb_2_button_11 = action_joy_0_2nd_button
(Here too, the combination of joystick name/button numbers are just made up for this example)

More information at http://fengestad.no/fs-uae/input-mapping and http://fengestad.no/fs-uae/input-actions.

Last edited by FrodeSolheim; 02 February 2013 at 21:37. Reason: Fixed typos
FrodeSolheim is offline  
Old 02 February 2013, 22:07   #3
dreamkatcha
I've got a new byline
 
dreamkatcha's Avatar
 
Join Date: Mar 2002
Location: Manchester, UK
Posts: 1,219
You have a solution for everything! Thanks. I can't seem to get it to play ball though. I've tried various combinations e.g...

Code:
playsega_controller_9_2_0_0_linux_left_shoulder = action_joy_0_fire_button
playsega_controller_9_2_0_0_linux_right_shoulder = action_joy_0_2nd_button
Code:
playsega_controller_button_6 = action_joy_0_fire_button
playsega_controller_button_7 = action_joy_0_2nd_button
...I checked the button numbers with jstest to no avail.
dreamkatcha is offline  
Old 02 February 2013, 22:33   #4
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
I tested just now with (to make sure there were no regression):
Code:
sony_playstation_r_3_controller_button_8 = action_joy_0_fire_button
sony_playstation_r_3_controller_button_9 = action_joy_0_2nd_button
and it worked like expected. Note: you should use your second example. The "long" joystick names are not supported for these mappings.

Please post FS-UAE.log after a failed attempt to make it work, for analysis!
FrodeSolheim is offline  
Old 02 February 2013, 22:47   #5
dreamkatcha
I've got a new byline
 
dreamkatcha's Avatar
 
Join Date: Mar 2002
Location: Manchester, UK
Posts: 1,219
No problem. Here it is.

If anyone is looking for a good joypad for emulation, I highly recommended the Sega Play Saturn remake. It's very responsive and comfortable to use, and feels solidly built unlike the Retrolink SNES and NES rehashes you read all the terrible reviews of. I just hope it lasts. This one got some mixed reviews, but the complaints were mostly to do with it not living up to the original, which is irrelevant to me as I've never owned a Saturn.
Attached Files
File Type: txt FS-UAE.txt (43.4 KB, 384 views)
dreamkatcha is offline  
Old 02 February 2013, 22:53   #6
FrodeSolheim
FS-UAE Developer
 
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
Well, in this case, there's a problem because this config:
Code:
joystick_1_button_4 = action_joy_0_fire_button
joystick_1_button_5 = action_joy_0_2nd_button
maps button 4 and 5 of your second joystick (yes, zero index based.. :-/) to the mouse buttons. Since you only have one joystick, the correct is:
Code:
joystick_0_button_4 = action_joy_0_fire_button
joystick_0_button_5 = action_joy_0_2nd_button
The following should also be identical in this case (but better in case you connect another joystick to your computer as well):
Code:
playsega_controller_button_4 = action_joy_0_fire_button
playsega_controller_button_5 = action_joy_0_2nd_button

Last edited by FrodeSolheim; 02 February 2013 at 23:00.
FrodeSolheim is offline  
Old 02 February 2013, 23:03   #7
dreamkatcha
I've got a new byline
 
dreamkatcha's Avatar
 
Join Date: Mar 2002
Location: Manchester, UK
Posts: 1,219
Oops! I was trying every possible combination hoping I would strike lucky eventually. I was probably picturing monkeys, typewriters and the next Shakespeare play.

Bizarrely that last example of yours worked perfectly this time. Very odd, but thanks for persevering. Got there in the end thanks to you.
dreamkatcha 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
Wanted: spare eject buttons for A3000D floppy drives brett71 MarketPlace 5 01 October 2010 03:32
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
monitor buttons Marcuz request.UAE Wishlist 5 22 April 2006 19:12
Joystick Buttons Echo Retrogaming General Discussion 19 29 January 2003 19:42

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 18:12.

Top

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