Reicast emulator 4 player support retropie
-
Hoping someone can help. I have an 4 player cab but I cant get 3 and 4 player working in the dreamcast emulator (tested with powerstone 2). Using 2 xin-mo controllers, mame 4 player games work great.
Is there something in the emu.cfg I need to change.. something to do with the event ID's?here is my cfg[audio] backend = oss disable = 0 [config] Debug.SerialConsoleEnabled = 0 Dreamcast.Broadcast = 4 Dreamcast.Cable = 3 Dreamcast.RTC = 1543277840 Dreamcast.Region = 3 Dynarec.Enabled = 1 Dynarec.idleskip = 1 Dynarec.unstable-opt = 0 aica.LimitFPS = 1 aica.NoBatch = 0 aica.NoSound = 0 bios.UseReios = 0 homedir = /home/pi image = /home/pi/RetroPie/roms/dreamcast/Power Stone 2 (USA).cdi pvr.MaxThreads = 3 pvr.Subdivide = 0 pvr.SynchronousRendering = 0 pvr.rend = 0 rend.UseMipmaps = 1 rend.WideScreen = 0 ta.skip = 0 [dispmanx] height = 480 maintain_aspect = yes width = 640 [input] evdev_device_id_1 = 3 evdev_device_id_2 = 4 evdev_device_id_3 = 5 evdev_device_id_4 = 6 evdev_mapping_1 = /opt/retropie/configs/dreamcast/mappings/controller_XinmotekXinmotekDualController.cfg evdev_mapping_2 = /opt/retropie/configs/dreamcast/mappings/controller_XinmotekXinmotekDualController.cfg evdev_mapping_3 = /opt/retropie/configs/dreamcast/mappings/controller_XinmotekXinmotekDualController.cfg evdev_mapping_4 = /opt/retropie/configs/dreamcast/mappings/controller_XinmotekXinmotekDualController.cfg joystick_device_id = -1 [omx] audio_hdmi = yes audio_latency = 100 [players] nb = 4 [reios] ElfFile = [testing] ta.HashCheckFile = ta.HashLogFile = [validate] OpenGlChecks = 0 [x11] fullscreen = 1
-
Did you double check that evdev_device_id's match the controllers /dev/input/event number?
-
@quicksilver said in Reicast emulator 4 player support retropie:
Did you double check that evdev_device_id's match the controllers /dev/input/event number?
not quite sure how to check that.. its not the jstest is it?
-
@drewjbx navigate to /dev/input/ and see what events are listed there.
-
Showing events 0 thru 6... js0 to js3, maybe change the evdev_device_id's to 0-3 rather than 3 to 6?
evdev_device_id_1 = 3
evdev_device_id_2 = 4
evdev_device_id_3 = 5
evdev_device_id_4 = 6 -
@drewjbx try 1-4. We already know 3 and 4 are working right?
-
Getting closer, yes 3 and 4 work. Got joystick controls working for players 3 and 4, also button selection (A,B, X, Y). But start button not working which is needed to start powerstone. The reicast config only does controller 1 mapping but uses the button codes across all controllers I assume...
This seems to work but no start button...
evdev_device_id_1 = 3
evdev_device_id_2 = 4
evdev_device_id_3 = 1
evdev_device_id_4 = 2 -
@drewjbx start button is not working for all controllers or just controllers 3-4?
Also have you run the reicast-joyconfig yet to determine the correct mapping for your particular control setup?
-
Don't think its going to work, yes I ran reicast-joyconfig…. for P1 and P2 I have 6 action buttons and then a coin and start button. The 6 actions button cover A,B,X,Y, LT, RT. So button number 7 ends up being the start button. For P3 and P4 I only have 4 action buttons plus the coin and start button. So the coin/start button end up being LT and RT. 1 button short for a start button. Hope that all makes sense.
If there was a way you can map each controller it could work but doesn't seem you can with reicast. Good to know 4 players does work though, can always use game pads for P3 and P4. Thanks for the help.btn_a = 288
btn_b = 289
btn_x = 291
btn_y = 292
btn_start = 295btn_trigger_left = 290
btn_trigger_right = 293 -
@drewjbx why dont you create a second config file for players 3-4 with the buttons slightly remapped? Probably could use the coin button as start or something?
Edit:how often are both triggers used in game?
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.