Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -528,17 +528,25 @@ def getMameControlScheme(system: Emulator, rom: Path) -> str:
return "sfsnes"
if controllerType == "megadrive":
return "megadrive"
if controllerType in ["arcade33", "arcade33top1"]:
return "arcade33top1"
elif romName in mkList:
if controllerType in [ "auto", "snes", "fightstick" ]:
return "mksnes"
if controllerType == "megadrive":
return "mkmegadrive"
if controllerType in ["arcade33", "arcade33top1"]:
return "mkarcade33"
elif romName in kiList:
if controllerType in [ "auto", "snes", "fightstick" ]:
return "kisnes"
if controllerType == "megadrive":
return "megadrive"
if controllerType in ["arcade33", "arcade33top1"]:
return "arcade33top1"
elif romName in neogeoList:
if controllerType in ["arcade33", "arcade33top1"]:
return "neoarcade33"
return "neomini"
elif romName in twinstickList:
return "twinstick"
Expand All @@ -547,7 +555,11 @@ def getMameControlScheme(system: Emulator, rom: Path) -> str:
else:
if controllerType == "fightstick":
return "sfsnes"

if controllerType == "arcade33":
return "arcade33"
if controllerType == "arcade33top1":
return "arcade33top1"

return "default"

def generateMAMEPadConfig(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -851,21 +851,29 @@ def getMameControlScheme(system: Emulator, rom_path: Path) -> MameControlScheme:
return "megadrive"
if controllerType == "fightstick":
return "sfstick"
if controllerType in ["arcade33", "arcade33top1"]:
return "arcade33top1"
elif romName in mkList:
if controllerType in [ "auto", "snes" ]:
return "mksnes"
if controllerType == "megadrive":
return "mkmegadrive"
if controllerType == "fightstick":
return "mkstick"
if controllerType in ["arcade33", "arcade33top1"]:
return "mkarcade33"
elif romName in kiList:
if controllerType in [ "auto", "snes" ]:
return "kisnes"
if controllerType == "megadrive":
return "megadrive"
if controllerType == "fightstick":
return "sfstick"
if controllerType in ["arcade33", "arcade33top1"]:
return "arcade33top1"
elif romName in neogeoList:
if controllerType in ["arcade33", "arcade33top1"]:
return "neoarcade33"
return "neomini"
elif romName in twinstickList:
return "twinstick"
Expand All @@ -876,5 +884,9 @@ def getMameControlScheme(system: Emulator, rom_path: Path) -> MameControlScheme:
return "fightstick"
if controllerType == "megadrive":
return "mddefault"

if controllerType == "arcade33":
return "arcade33"
if controllerType == "arcade33top1":
return "arcade33top1"

return "default"
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,8 @@
'mkstick',
'kisnes',
'mddefault',
'arcade33',
'mkarcade33',
'neoarcade33',
'arcade33top1',
]
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,26 @@ fightstick,BUTTON4,l2
fightstick,BUTTON5,y
fightstick,BUTTON6,x
fightstick,BUTTON7,pagedown
fightstick,BUTTON8,pageup
fightstick,BUTTON8,pageup
arcade33,BUTTON1,b
arcade33,BUTTON2,a
arcade33,BUTTON3,pagedown
arcade33,BUTTON4,y
arcade33,BUTTON5,x
arcade33,BUTTON6,pageup
mkarcade33,BUTTON1,y
mkarcade33,BUTTON2,x
mkarcade33,BUTTON3,pageup
mkarcade33,BUTTON4,b
mkarcade33,BUTTON5,pagedown
mkarcade33,BUTTON6,a
neoarcade33,BUTTON1,y
neoarcade33,BUTTON2,x
neoarcade33,BUTTON3,b
neoarcade33,BUTTON4,a
arcade33top1,BUTTON1,y
arcade33top1,BUTTON2,x
arcade33top1,BUTTON3,pageup
arcade33top1,BUTTON4,b
arcade33top1,BUTTON5,a
arcade33top1,BUTTON6,pagedown
4 changes: 4 additions & 0 deletions package/batocera/emulators/mame/mame.emulator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1560,6 +1560,8 @@ systems:
Neo Geo CD Pad: neocd
Twin Stick with Triggers: twinstick
Rotated 4-Way Stick (Q*Bert): qbert
Arcade 6-Button, 3 Over 3: arcade33
Arcade 6-Button, 3 Over 3, Button 1 on Top: arcade33top1
hiscoreplugin:
group: ADVANCED OPTIONS
prompt: HIGH SCORE PLUGIN
Expand Down Expand Up @@ -1595,6 +1597,8 @@ systems:
Neo Geo CD Pad: neocd
Twin Stick with Triggers: twinstick
Rotated 4-Way Stick (Q*Bert): qbert
Arcade 6-Button, 3 Over 3: arcade33
Arcade 6-Button, 3 Over 3, Button 1 on Top: arcade33top1
hiscoreplugin:
group: ADVANCED OPTIONS
prompt: HIGH SCORE PLUGIN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ custom_features:
Neo Geo CD Pad: neocd
Twin Stick with Triggers: twinstick
Rotated 4-Way Stick (Q*Bert): qbert
Arcade 6-Button, 3 Over 3: arcade33
Arcade 6-Button, 3 Over 3, Button 1 on Top: arcade33top1
hiscoreplugin:
group: ADVANCED OPTIONS
prompt: HIGH SCORE PLUGIN
Expand Down