English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 21 November 2019, 03:02   #1
badflame
Registered User
 
Join Date: Feb 2018
Location: Spain
Posts: 79
Mapping custom game ports

I think it would be very useful to be able to re-assign the default buttons of the controllers without creating customs.

As this is not possible I have created a custom game port, to re-assign the buttons of a "Pro Controller" controller.

Ok, no problem with this.

The problem appears when I configure a switch button to enable/disable the autofire.



In the "Configuration #2" if I change the autofire flag to "yes" in "[PORT2] Joy2 Fire", it returns to "no" automatically.

So I have to create a page "2" and map it manually:



And this is the point. I must choose between port 1 or 2, but not an autoport.

Then, the autofire works, but only if the controller is installed in the selected port.

Following the example, if I connect the controller on Port-1, or if I connect a second controller to play 2 players, the autofire never will activate on Port-1.

Any help?

Thanks
badflame is offline  
Old 23 November 2019, 18:14   #2
badflame
Registered User
 
Join Date: Feb 2018
Location: Spain
Posts: 79
Toni Wilen if nothing to do, would it be possible to modify WinUAE so that [PORT] accept the "autofire" flag within the "Configuration #x" settings? Or alternatively, it would also be useful to add an "Input target" [PORT], to don't must to specify Joy1 or Joy2.

Thanks.
badflame is offline  
Old 23 November 2019, 18:56   #3
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
I am not sure if I understood fully but doesn't gameports panel autofire still work in this situation? (without needing to create custom mapping)
Toni Wilen is offline  
Old 23 November 2019, 22:50   #4
badflame
Registered User
 
Join Date: Feb 2018
Location: Spain
Posts: 79
Quote:
Originally Posted by Toni Wilen View Post
I am not sure if I understood fully but doesn't gameports panel autofire still work in this situation? (without needing to create custom mapping)
With predefined gameports yes, but no with Custom.

And in this case I need create a Custom because the "Buttom 1" of the "Pro Controller" correspond to the "Y" of my SEGA pad, and I want "A" (Buttom 3) as "Joy2 Fire/Mouse2 Left Button". And the "Input Remap" of the "Pro Controller" is not editable.

For this reason my first comment was that it would be very useful to be able to re-assign the default buttons of the not custom controllers (this would be another way to solve my problem with the autofire swtich without using custom controllers).

Last edited by badflame; 23 November 2019 at 23:05.
badflame is offline  
Old 24 November 2019, 20:23   #5
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Custom mapping autofire is in remap/test page (last button), replacing gameports basic autofire options.
Toni Wilen is offline  
Old 25 November 2019, 02:48   #6
badflame
Registered User
 
Join Date: Feb 2018
Location: Spain
Posts: 79
Quote:
Originally Posted by Toni Wilen View Post
Custom mapping autofire is in remap/test page (last button), replacing gameports basic autofire options.
Yes, you can change the autofire value in the remap/test page:



But is the same problem, this value will be "YES" or "NO" but always FIXED.



In fact, you can change the flag but not keeps the new value and when you exit and return to this window, takes the flag value of the remap/test page again.

This problem only happens with Custom configurations, with the predefined gamepads you can change the autofire flag and the system keeps changes.

Last edited by badflame; 25 November 2019 at 02:55.
badflame is offline  
Old 25 November 2019, 18:14   #7
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Sorry but I am still not exactly sure whats the problem. Input panel won't allow changing autofire (by design) if port is used by gameports configured port and custom mapped autofire seems to work fine here. Input panel also shows correct autofire mode, it just can't be modified.

Attach your config file.
Toni Wilen is offline  
Old 26 November 2019, 01:05   #8
badflame
Registered User
 
Join Date: Feb 2018
Location: Spain
Posts: 79
In summary, I looking for configure the "Button 1" of my "Pro Controller" to switch autofire function.

Restrictions of WinUAE

With "Pro Controller"

"Button 1" is predefined to "[PORTx] Joy Fire/Mouse Left Button" and is not possible to remap from "remap/test" options.

With "Custom"

Is not possible change the "Autofire" flag value from the "Configuration":



for this reason I added a second function for the "Button 1":



But in this way only will works when the controller is conected as "Joy2", and I looking for one configuration that work in any Port.

UPDATE

Is not possible change the "Autofire" flag value from the "Configuration" neither with the predefined game ports when [PORTx]. It's to say, always you must add one second function to the buttont, with the drawback I have pointed out, we have to specify the port: "Joy1 or Joy2". Reason why, if we do not connect the game controller in the selected port, the autofire switch will not work

---------------------------------------------------------------------------------

As you requested me, I attach you my config:
Attached Files
File Type: uae default.uae (17.5 KB, 61 views)

Last edited by badflame; 26 November 2019 at 02:00.
badflame is offline  
Old 26 November 2019, 17:33   #9
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Did you mean "custom" as in input panel? That would explain the confusion because for me "custom" means game ports panel custom mapping. (Custom 1-6 entries).

Input panel is just input panel.

If not, then I am still not sure what do you want.

Input panel won't allow autofire change if it says [PORT x] because option comes from Game Ports panel where it can be changed normally. (either autofire in gameports window or in gameports remap/test window if custom x mode)

So why not just use game ports panel to change autofire because you already use it to select your game controller? (the whole point of [PORT x] in input panel is that gameports gets merged with input panel customizations and any option inherited from gameports becomes read-only)

I must be missing something too obvious..
Toni Wilen is offline  
Old 27 November 2019, 02:07   #10
badflame
Registered User
 
Join Date: Feb 2018
Location: Spain
Posts: 79
By "Custom" game port, I mean this:



And when I talk about predefined, I talk on "XBOX 360", "Pro Controller", etc.

But, forget all of the above, as it seems that it is only making understanding difficult.

Let's reset

Imagine that I want create an "Input" configuration in WinUAE so that, by pressing a button on the gamepad, the autofire is activated/deactivated in real playing game time, without need to enter the WinUAE GUI and activate or deactivate it manually.

And also, that this "Input" configuration, work with that gamepad whether is connect it in "Port 1" or "Port 2".

How to do it?
badflame is offline  
Old 27 November 2019, 03:08   #11
sonninnos
Commodork
 
sonninnos's Avatar
 
Join Date: Nov 2018
Location: Finland
Posts: 82
You make two configurations, #1 without autofire and #2 with autofire. Then map a button on #1 that changes the input configuration to #2 with "Select Input Configuration #2", and vice versa.

Personally I just always use RT for autofire.

Edit: Oh wait, judging by those screen captures you are already trying to do that. Never mind. Putting both ports to "<none>" on the "Game ports" page should allow changing whatever in the Input page.

Last edited by sonninnos; 27 November 2019 at 03:14.
sonninnos is offline  
Old 27 November 2019, 19:01   #12
badflame
Registered User
 
Join Date: Feb 2018
Location: Spain
Posts: 79
Quote:
Originally Posted by sonninnos View Post
You make two configurations, #1 without autofire and #2 with autofire. Then map a button on #1 that changes the input configuration to #2 with "Select Input Configuration #2", and vice versa.

Personally I just always use RT for autofire.

Edit: Oh wait, judging by those screen captures you are already trying to do that. Never mind. Putting both ports to "<none>" on the "Game ports" page should allow changing whatever in the Input page.
Thanks for your kind reply

But selecting the game port as "<none>" does not solve the problem, since then all the values of the gamepad settings take the "Joy 2". That is, it only works with the gamepad connected in the "Port 2"

I think it is impossible to do this without any modification to the WinUAE code, to allow change the "autofire" flag in the "[Port2]", from the "Configuration" panel.
badflame is offline  
Old 27 November 2019, 19:54   #13
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
Quote:
Originally Posted by badflame View Post
By "Custom" game port, I mean this:



And when I talk about predefined, I talk on "XBOX 360", "Pro Controller", etc.

But, forget all of the above, as it seems that it is only making understanding difficult.

Let's reset

Imagine that I want create an "Input" configuration in WinUAE so that, by pressing a button on the gamepad, the autofire is activated/deactivated in real playing game time, without need to enter the WinUAE GUI and activate or deactivate it manually.

And also, that this "Input" configuration, work with that gamepad whether is connect it in "Port 1" or "Port 2".

How to do it?
Do you mean you want one gamepad button to work as a normal fire button and another button that works as a toggle autofire button? Custom map window will support it, just add another button with remap-button (there is no 1:1 mapping limit) and select autofire mode for it.
Toni Wilen is offline  
Old 27 November 2019, 23:52   #14
badflame
Registered User
 
Join Date: Feb 2018
Location: Spain
Posts: 79
Quote:
Originally Posted by Toni Wilen View Post
Do you mean you want one gamepad button to work as a normal fire button and another button that works as a toggle autofire button? Custom map window will support it, just add another button with remap-button (there is no 1:1 mapping limit) and select autofire mode for it.
Basically, yes. And I have already carry out that with my configuration.

But...

this autofire switch configuration stops working if the gamepad is connected in "Port 1", because as you can see in the screenshot, the autofire flag is "yes" for "Joy2" specifically.



So, even if the gamepad is connected to "Port 1", it continues to activate autofire for "Port 2". And obviously this is not the desired effect.

Normally, when I connect a gamepad in "Port 1" it will be because I will play with another player, with another gamepad in "Port 2". And this configuration would cause chaos, since I would activate the autofire of the opposite player.
badflame is offline  
Old 28 November 2019, 21:00   #15
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,502
It is a bug if "slot 2" option does not automatically update port number when game pad is moved to different port using game ports panel (and "slot 1" does change).
Toni Wilen is offline  
Old 29 November 2019, 01:16   #16
badflame
Registered User
 
Join Date: Feb 2018
Location: Spain
Posts: 79
Quote:
Originally Posted by Toni Wilen View Post
It is a bug if "slot 2" option does not automatically update port number when game pad is moved to different port using game ports panel (and "slot 1" does change).
It would be great if the custom button configuration automatically takes the port where the joystick is connected.

In addition, in this way, the list of drop-down options could be drastically reduced. Since there are now duplicate options for "Joystick port 1" and "Joystick port 2", which would not make sense to keep from the moment WinUAE will determine the port, depending on where the joystick is connected.



I hope you can correct this bug in the next version of WinUAE.

Thanks
badflame 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
Custom mapping multiple controllers snarfo support.FS-UAE 6 18 January 2017 09:13
Tile mapping used for game backgrounds Brick Nash Coders. General 13 29 May 2016 09:37
Mapping custom keys to joystick Crughon support.Amiga Forever 2 01 February 2016 21:10
Problem with custom keyboard mapping in WinUAE Snark support.WinUAE 8 05 October 2006 15:37
Mapping HID-compliant game controller Gamma Goblin support.Hardware 2 10 January 2003 03: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 11:43.

Top

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