recalbox / recalbox-configgen

Emulators configuration tools for recalboxOS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Reicast][Xin-Mo Dual Arcade] reicastControllers compat/axis dpad issue

grgohr opened this issue · comments

I want the stick to be able to manage both the hat and analogic and it works when the compat section contains:

[compat]
axis_dpad1_x = 0
axis_dpad1_y = 1

beside the main section

[dreamcast]
axis_y = 1
axis_x = 0

but reicastControllers isgnore the axis_dpad an removes them (keeps only triggers)
is it possible to have them added to the compat section ?

actually it depends on games, sonic ones must not have the axis_dpad1 declared or it controlls the camera and impossible to move.
I implemented a hack in reicastGenerator which could be probably smarter for mono stick controllers depending on the games need:

#Write its mapping file
#controllerConfigFile = reicastControllers.generateControllerConfig(controller)
controllerConfigFile ='/recalbox/share/system/configs/reicast/xinmo-full.cfg'
if 'sonic' in rom.lower():
controllerConfigFile ='/recalbox/share/system/configs/reicast/xinmo-sonic.cfg'