06 January 2017, 13:15 | #1 |
Posts: n/a
|
Custom mapping multiple controllers
Hi all,
FS-UAE detects and works with my controllers just fine--- however, I'm trying to map the game exit function to f10 and assign it to the right thumbstick button on my XBox One Elite pad and it's making me crazy. FS-UAE detects my controller as 'xinput controller #2' since I have a few other controllers hooked up to this htpc as well. I can go into the advanced controller setup and enter the string to enable this on the first 'xinput controller' (which works), but for the life of me I can't get the syntax to use controller #2 for the special mapping string: xinput_controller_2_button_9 = action_key_f10 I've tried using #2 instead of just 2, with and without the underscore, etc., but I just can't get it to work on this second stick. Little help, anyone? |
06 January 2017, 18:54 | #2 |
FS-UAE Developer
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
|
Hi, it does indeed look like a bug. Works with "regular" gamepad devices but not with xinput controllers. Will look into it: https://github.com/FrodeSolheim/fs-uae/issues/140
In the mean, you can do a workaround, which is also actually much better Code:
joystick_0_rstick_button = action_key_f10 joystick_1_rstick_button = action_key_f10 joystick_2_rstick_button = action_key_f10 joystick_3_rstick_button = action_key_f10 (PS: For other readers, the OP probably uses WHDLoad and F10 as a quit key there. If he wanted to quit FS-UAE directly, he'd use action_quit) Last edited by FrodeSolheim; 06 January 2017 at 19:08. |
06 January 2017, 19:36 | #3 |
FS-UAE Developer
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
|
Tested again and it actually works just fine with two controllers and:
Code:
xinput_controller_button_9 = action_quit xinput_controller_2_button_9 = action_quit |
06 January 2017, 20:05 | #4 |
Posts: n/a
|
Hm, thanks for the replies. I'll give it a try when I get home. ---and you are correct, I'm using WHDLoad and wanted that stick button press to be a global "polite" way to exit games, per Zombeaver's excellent tutorial on getting everything working in Launchbox (my front end of choice):
http://forums.launchbox-app.com/topi...x-integration/ |
06 January 2017, 21:09 | #5 |
Posts: n/a
|
Just a bit of clarification--- it will work with up to 4 controllers (as your list of 0-3 shows)? My xinput 2 controller is my XBox Elite gamepad and it's actually enumerated as device 9 in my usb controller chain. This is my HTPC/emulation machine so it has a 4-tap Gamecube adapter, 2-port N64 controller adapter, Wii bar, two XBox One controllers, a Hori Fighting Commander 4 controller (for consoles that need 6 buttons), an Ultimate PC Adapter for Colecovision and Intellivision controllers, and a Tankstick for arcade/MAME emulation. Some would call this overkill, but I just find it efficient :-)
I've already run into an issue with another emulator (jzintv) that only enumerates the first 4 devices to use. Since my Ultimate PC Adapter is higher than 4 I ended up having to run my Intellivision games in MAME which allows me to use all my devices. Hopefully FS-UAE will let me use higher-numbered devices. Incidentally, thank you for such a great app. I occasionally dusted off WinUAE but it was too much work to deal with on a regular basis. |
06 January 2017, 21:38 | #6 |
FS-UAE Developer
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
|
Yes, I just used 4 devices as an example.. you can go on up to...
Code:
... joystick_7_rstick_button = action_key_f10 (FS-UAE supports up to 64 connected devices, including keyboard, mice, etc) |
18 January 2017, 09:13 | #7 |
Registered User
Join Date: Dec 2015
Location: Warsaw
Posts: 74
|
And how to do custom mapping on X1 pads for CD32 games?
Asking because "color" buttons are different on CD32 pad than "color" buttons (A/B/X/Y) on X1 default mappings |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Having a hard time mapping multiple Xbox One gamepads in WinUAE | ReL0aDed | support.WinUAE | 4 | 26 July 2016 17:26 |
Mapping custom keys to joystick | Crughon | support.Amiga Forever | 2 | 01 February 2016 21:10 |
Mapping multiple USB devices to one "gameport" in WinUAE? | isamu | support.WinUAE | 7 | 22 March 2013 10:55 |
Sega controllers? | one1 | support.Hardware | 33 | 24 August 2007 15:43 |
Problem with custom keyboard mapping in WinUAE | Snark | support.WinUAE | 8 | 05 October 2006 15:37 |
|
|