looking for a way to set analog to digital to left analog (forced) in retroarch
3 posters
Page 1 of 1
looking for a way to set analog to digital to left analog (forced) in retroarch
long story short im using a ipac2 in xinput mode on my arcade machine. my stick is set to the left analog axis not the dpad.
i noticed that when i launch some systems in retrobat/retroarch (colecovision and jaguar not sure if there are others) i have no directional controls. I can fix this by going to the input binds and set the analog to digital setting to left analog (forced).
Is there a way I can default to that setting in retroarch with Retrobat? I haven't been able to find it. The actual flag is input_player1_analog_dpad_mode = "3". If i set that in the retoarch.cfg is just gets overwritten.
Any help would be appreciated. Sorry if Im asking something obvious, i did search the forums prior to writing this question.
i noticed that when i launch some systems in retrobat/retroarch (colecovision and jaguar not sure if there are others) i have no directional controls. I can fix this by going to the input binds and set the analog to digital setting to left analog (forced).
Is there a way I can default to that setting in retroarch with Retrobat? I haven't been able to find it. The actual flag is input_player1_analog_dpad_mode = "3". If i set that in the retoarch.cfg is just gets overwritten.
Any help would be appreciated. Sorry if Im asking something obvious, i did search the forums prior to writing this question.
R1110- Messages : 41
Date d'inscription : 2024-07-11
Re: looking for a way to set analog to digital to left analog (forced) in retroarch
Hello, this is totally possible with the inputremap functionnality we offer.
Do you have an example of retroarch core / system for which you would like to set this up ?
Do you have an example of retroarch core / system for which you would like to set this up ?
tartifless- Admin
- Messages : 1642
Date d'inscription : 2021-04-27
Re: looking for a way to set analog to digital to left analog (forced) in retroarch
yes its the default core for colecovision, it appears to occur with the default ds and jaguar cores as well. i was just going through them. Do you want me to get the core names or do you know the 6.3 default cores?
R1110- Messages : 41
Date d'inscription : 2024-07-11
Re: looking for a way to set analog to digital to left analog (forced) in retroarch
Unfortunately, you will have to do it core by core, but here is the procedure:
1) Create a .yml file in "RetroBat\system\resources\inputmapping" called : libretro_core_system.yml (replace core with the name of the core and system with the name of the system)
==> you can take example from the libretro_flycast_naomi.yml file
2) Create an entry called "default" and put the value "analog_dpad_mode: 3" inside, like that:
Take example of the asndynmt game.
3) Save the file and run a game with the given core and system
1) Create a .yml file in "RetroBat\system\resources\inputmapping" called : libretro_core_system.yml (replace core with the name of the core and system with the name of the system)
==> you can take example from the libretro_flycast_naomi.yml file
2) Create an entry called "default" and put the value "analog_dpad_mode: 3" inside, like that:
- Code:
default:
analog_dpad_mode: 3
Take example of the asndynmt game.
3) Save the file and run a game with the given core and system
tartifless- Admin
- Messages : 1642
Date d'inscription : 2021-04-27
R1110 likes this post
Re: looking for a way to set analog to digital to left analog (forced) in retroarch
damn, ok will try that out. It doesn't look be too bad. I was also reading https://wiki.retrobat.org/controllers/specific_mapping/retroarch-controller-mapping would that be a alternative solution to my problem? It looks like it would do the trick as well.
Thanks alot for your attention man, i love Retrobat. Its my favorite front end by far!
Thanks alot for your attention man, i love Retrobat. Its my favorite front end by far!
R1110- Messages : 41
Date d'inscription : 2024-07-11
Re: looking for a way to set analog to digital to left analog (forced) in retroarch
This is to be done at game level, so would be more time consuming to do !
tartifless- Admin
- Messages : 1642
Date d'inscription : 2021-04-27
R1110 likes this post
Re: looking for a way to set analog to digital to left analog (forced) in retroarch
I did what you suggested and created "C:\RetroBat6.3\system\resources\inputmapping\libretro_gearcoleco_colecovision.yml"
with the contents:
THIS WORKED LIKE A CHARM! THANK YOU!
I want to just add for people who are trying this solution is that the easiest place to find libretro core name and system name is looking in the emulatorLauncher.log here: "C:\RetroBat6.3\emulationstation\emulatorLauncher.log"
with the contents:
- Code:
default:
analog_dpad_mode: 3
THIS WORKED LIKE A CHARM! THANK YOU!
I want to just add for people who are trying this solution is that the easiest place to find libretro core name and system name is looking in the emulatorLauncher.log here: "C:\RetroBat6.3\emulationstation\emulatorLauncher.log"
R1110- Messages : 41
Date d'inscription : 2024-07-11
Re: looking for a way to set analog to digital to left analog (forced) in retroarch
@tartifless I was just curious are these not implemented in the remapinput functionality? Seems like they should work but they don't.
I even tried this and they don't work either
The reason I'm asking is systems like naomi and naomi2 have a mix of analog and dpad games. The flycast_arcade.yml seems to have these already mapped out and it would be easy to just copy those out of there....
- Code:
leftanalogleft: btn_dpad1_left
leftanalogright: btn_dpad1_right
leftanalogup: btn_dpad1_up
leftanalogdown: btn_dpad1_down
I even tried this and they don't work either
- Code:
l_x_minus_axis: btn_dpad1_left
l_x_plus_axis: btn_dpad1_right
l_y_plus_axis: btn_dpad1_up
l_y_minus_axis: btn_dpad1_down
The reason I'm asking is systems like naomi and naomi2 have a mix of analog and dpad games. The flycast_arcade.yml seems to have these already mapped out and it would be easy to just copy those out of there....
Last edited by R1110 on 26/07/24, 03:22 pm; edited 2 times in total (Reason for editing : addition)
R1110- Messages : 41
Date d'inscription : 2024-07-11
Re: looking for a way to set analog to digital to left analog (forced) in retroarch
Have you check on the RetroBat menu for these systems, you should have an option in there to switch between bothR1110 wrote:
The reason I'm asking is systems like naomi and naomi2 have a mix of analog and dpad games. The flycast_arcade.yml seems to have these already mapped out and it would be easy to just copy those out of there....
getupor- Admin
- Messages : 1388
Date d'inscription : 2020-10-04
Re: looking for a way to set analog to digital to left analog (forced) in retroarch
@getupor There are menu options to select the controller type. My issue is a little different in that i have xinput arcade stick mapped to analogue controls. The fix that @tartifless gave me works great but the only problem is for systems like naomi, naomi2 and atomiswave. The fix breaks one or the other so what i need to do is only set the fix for digital games not analog. I can get that info out of the flycast_arcade.yml. my question was more out of curiosity because it looks like everything is already accounted for in the flycast_arcade.yml but the codes dont all seem to work.
Im good now , I know what i have to do i was just wondering why those entries dont work
.,
Im good now , I know what i have to do i was just wondering why those entries dont work
.,
R1110- Messages : 41
Date d'inscription : 2024-07-11
Re: looking for a way to set analog to digital to left analog (forced) in retroarch
R1110 wrote:@tartifless I was just curious are these not implemented in the remapinput functionality? Seems like they should work but they don't.
- Code:
leftanalogleft: btn_dpad1_left
leftanalogright: btn_dpad1_right
leftanalogup: btn_dpad1_up
leftanalogdown: btn_dpad1_down
I even tried this and they don't work either
- Code:
l_x_minus_axis: btn_dpad1_left
l_x_plus_axis: btn_dpad1_right
l_y_plus_axis: btn_dpad1_up
l_y_minus_axis: btn_dpad1_down
The reason I'm asking is systems like naomi and naomi2 have a mix of analog and dpad games. The flycast_arcade.yml seems to have these already mapped out and it would be easy to just copy those out of there....
Hello,
This works for flycast standalone, for libretro it is a bit more complicated as it uses only numbers !
You can look at the example for the libretro_flycast_naomi file, so it's not that obvious as you have to understand what each number corresponds to.
If you get to find out, we can put it as commentar on top of the yml file.
And i am under the impression that each game has its own "numbering" for the buttons ... ==> which is a bit of a mess to automate.
==> You're better of saving your own game remap file by doing F1 and chaning in retroarch directly
tartifless- Admin
- Messages : 1642
Date d'inscription : 2021-04-27
Re: looking for a way to set analog to digital to left analog (forced) in retroarch
R1110 wrote:I did what you suggested and created "C:\RetroBat6.3\system\resources\inputmapping\libretro_gearcoleco_colecovision.yml"
with the contents:
- Code:
default:
analog_dpad_mode: 3
THIS WORKED LIKE A CHARM! THANK YOU!
I want to just add for people who are trying this solution is that the easiest place to find libretro core name and system name is looking in the emulatorLauncher.log here: "C:\RetroBat6.3\emulationstation\emulatorLauncher.log"
Best way is to look in es_systems.cfg file.
tartifless- Admin
- Messages : 1642
Date d'inscription : 2021-04-27
Similar topics
» [Resolved] Games in .zip forced to decompress with Mednafen standalone
» yuzu is forced to use Vulkan over openGl not good for Nvidia hardware
» Some decorations are shifted slightly to left side?
» Controller Bind to mouse left/right click?
» PCSX 2 (standalone) : how to disable messages (top-left screen)
» yuzu is forced to use Vulkan over openGl not good for Nvidia hardware
» Some decorations are shifted slightly to left side?
» Controller Bind to mouse left/right click?
» PCSX 2 (standalone) : how to disable messages (top-left screen)
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum