RETROBAT Official Board
Would you like to react to this message? Create an account in a few clicks or log in to continue.

looking for a way to set analog to digital to left analog (forced) in retroarch

3 posters

Go down

looking for a way to set analog to digital to left analog (forced) in retroarch Empty looking for a way to set analog to digital to left analog (forced) in retroarch

Post by R1110 25/07/24, 02:20 pm

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.
R1110
R1110

Messages : 41
Date d'inscription : 2024-07-11

Back to top Go down

looking for a way to set analog to digital to left analog (forced) in retroarch Empty Re: looking for a way to set analog to digital to left analog (forced) in retroarch

Post by tartifless 25/07/24, 04:14 pm

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 ?


looking for a way to set analog to digital to left analog (forced) in retroarch Modo
tartifless
tartifless
Admin

Messages : 1642
Date d'inscription : 2021-04-27

Back to top Go down

looking for a way to set analog to digital to left analog (forced) in retroarch Empty Re: looking for a way to set analog to digital to left analog (forced) in retroarch

Post by R1110 25/07/24, 04:36 pm

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
R1110

Messages : 41
Date d'inscription : 2024-07-11

Back to top Go down

looking for a way to set analog to digital to left analog (forced) in retroarch Empty Re: looking for a way to set analog to digital to left analog (forced) in retroarch

Post by tartifless 25/07/24, 04:45 pm

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:
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


looking for a way to set analog to digital to left analog (forced) in retroarch Modo
tartifless
tartifless
Admin

Messages : 1642
Date d'inscription : 2021-04-27

R1110 likes this post

Back to top Go down

looking for a way to set analog to digital to left analog (forced) in retroarch Empty Re: looking for a way to set analog to digital to left analog (forced) in retroarch

Post by R1110 25/07/24, 04:57 pm

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!
R1110
R1110

Messages : 41
Date d'inscription : 2024-07-11

Back to top Go down

looking for a way to set analog to digital to left analog (forced) in retroarch Empty Re: looking for a way to set analog to digital to left analog (forced) in retroarch

Post by tartifless 25/07/24, 05:07 pm

This is to be done at game level, so would be more time consuming to do !


looking for a way to set analog to digital to left analog (forced) in retroarch Modo
tartifless
tartifless
Admin

Messages : 1642
Date d'inscription : 2021-04-27

R1110 likes this post

Back to top Go down

looking for a way to set analog to digital to left analog (forced) in retroarch Empty Re: looking for a way to set analog to digital to left analog (forced) in retroarch

Post by R1110 25/07/24, 05:43 pm

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"
R1110
R1110

Messages : 41
Date d'inscription : 2024-07-11

Back to top Go down

looking for a way to set analog to digital to left analog (forced) in retroarch Empty Re: looking for a way to set analog to digital to left analog (forced) in retroarch

Post by R1110 26/07/24, 03:01 pm

@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....


Last edited by R1110 on 26/07/24, 03:22 pm; edited 2 times in total (Reason for editing : addition)
R1110
R1110

Messages : 41
Date d'inscription : 2024-07-11

Back to top Go down

looking for a way to set analog to digital to left analog (forced) in retroarch Empty Re: looking for a way to set analog to digital to left analog (forced) in retroarch

Post by getupor 26/07/24, 03:27 pm

R1110 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....
Have you check on the RetroBat menu for these systems, you should have an option in there to switch between both


looking for a way to set analog to digital to left analog (forced) in retroarch Modo
getupor
getupor
Admin

Messages : 1388
Date d'inscription : 2020-10-04

Back to top Go down

looking for a way to set analog to digital to left analog (forced) in retroarch Empty Re: looking for a way to set analog to digital to left analog (forced) in retroarch

Post by R1110 26/07/24, 03:43 pm

@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
.,
R1110
R1110

Messages : 41
Date d'inscription : 2024-07-11

Back to top Go down

looking for a way to set analog to digital to left analog (forced) in retroarch Empty Re: looking for a way to set analog to digital to left analog (forced) in retroarch

Post by tartifless 26/07/24, 05:14 pm

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


looking for a way to set analog to digital to left analog (forced) in retroarch Modo
tartifless
tartifless
Admin

Messages : 1642
Date d'inscription : 2021-04-27

Back to top Go down

looking for a way to set analog to digital to left analog (forced) in retroarch Empty Re: looking for a way to set analog to digital to left analog (forced) in retroarch

Post by tartifless 26/07/24, 05:28 pm

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.


looking for a way to set analog to digital to left analog (forced) in retroarch Modo
tartifless
tartifless
Admin

Messages : 1642
Date d'inscription : 2021-04-27

Back to top Go down

looking for a way to set analog to digital to left analog (forced) in retroarch Empty Re: looking for a way to set analog to digital to left analog (forced) in retroarch

Post by Sponsored content


Sponsored content


Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum