Xboxdrv mapping (Nes30Pro), UAE4arm, mouse and joystick
-
@i8allUrPi said in Xboxdrv mapping (Nes30Pro), UAE4arm, mouse and joystick:
I'm using a slightly outdated version of UAE4arm... I presume that setting was added in a more recent version
It must have been. I assume this could still be set manually in
/opt/retropie/configs/amiga/uae4all/conf/uaeconfig.uae
. In mine, there's a setting that reads:joyportfriendlyname1=Logitech Rumblepad 2 (xboxdrv)
This corresponds to my xboxdrv mapping for
--device-name
. However, I'm not sure if that's all that is needed to set the default controller. -
Strange, I don't have that line, or any line relating to a specific controller. I wonder if it's hard coded to just choose the first joystick available.
Presumably as it's a configuration setting created in the newer version it makes sense that it won't be in the configuration file.
More hunting.
Life would be easy if that were the case, if it were possible to swap the event numbers (maintaining the mapping). I doubt it's that easy though.
-
I may have found it...
/opt/retropie/emulators/uar4arm/conf/uaeconfig.uae contains lines relating to joysticks.
Just going to back up and experiment.
-
No dice...
These lines gave me hope:
joyport0=mouse
joyport0autofire=none
joyport1=joy1
joyport1autofire=none
joyport1mode=djoyScrolled to find:
input.1.joystick.0.friendlyname=dPad as joystick
input.1.joystick.0.name=JOY0
input.1.joystick.0.empty=true
input.1.joystick.0.disabled=false
input.1.joystick.1.friendlyname=8Bitdo NES30 Pro
input.1.joystick.1.name=JOY1
input.1.joystick.1.empty=true
input.1.joystick.1.disabled=falseWhich led me to believe it was definitely looking for the other instance.
Changed that line to my new friendly name:
NES30 Pro (xboxdrv)And.... same as before.
Mouse and keyboard mapping works. No fire button to begin game.
Going to carry on looking through the config to see if there are additional settings.
(btw, what do I wrap the code above in so it's not inline? - sorry for poor formatting)
-
Ok, reached the bottom of the file - there were 2 more instances input.2., input.3. so changed them and tested...
No joy (no pun either)
Now, I don't know if it's related, but...
When I edited "+Start ScummVM" as per the method closer to the top of the wiki, it seemed that it was ignoring the configuration that was already there.
All my previously added games were not in the list, the graphic mode had reset to default and any games I did add, did not appear as .svm files in the scummvm directory, nor were they added to the emulation station menu under ScummVM (the old ones I'd previously added were there and still launched).
I worked around this by commenting out everything I'd added... mass adding all my ScummVM games, then uncommenting, relaunching, then finally mass adding again so they all appeared in the GUI too.
Could it be that somehow xboxdrv is losing the config file somewhere? Or maybe there's a config file lurking somewhere else in the filesystem that it has created?
-
In fact, I'm pretty sure this is the case, as I'd saved over the default config with speedball 2 in the drive (that's still present in /opt/retropie/emulators/uae4arm/conf/uaeconfig.uae) but it's not in the drive when launched from +Start Uae4arm
-
Going to back up my changes, revert back then try the onstart method further down the wiki and see if that makes a difference.
-
@i8allUrPi said in Xboxdrv mapping (Nes30Pro), UAE4arm, mouse and joystick:
btw, what do I wrap the code above in so it's not inline? - sorry for poor formatting
Three backticks
```
on either side.Going to back up my changes, revert back then try the onstart method further down the wiki
You might also try using the simplified method for launching xboxdrv that is detailed here.
Edit: You would of course change "sorr" to "amiga" and add your own xboxdrv configuration.
-
Thank you - going to take a break for a couple of hours then get back to it.
-
Ok, decided to bite the bullet and update UAE4arm, it works exactly as it should with your mappings and now I can launch ADFs, exit, use mouse, some keyboard keys and joystick all from the controller.
Thank you.
This did of course break the WHDLoad (loading games straight from the emulation station menu) functionality - but, I'll retrace my steps and see if I can fix that myself.
I really appreciate your time and effort.
I used the onstart method with 'case's - very neat solution.
-
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.