How to Run a Game on a Raspberry pi 5 SD Card Directly!

there’s now a GetCurrentGame function

so things have gotten me confused so Im gonna document more this is for the key board

for this you have to plug it in first

the /sd/arcade.cfg

[Target]
Hardware=pc

[Input]
SCAN_CODES=/dev/input/event0
BTN_LEFT=105
BTN_RIGHT=106
BTN_UP=103
BTN_DOWN=108
BTN_A=57
BTN_B=29
BTN_MENU=41
BTN_RESET=14
kbd_mode=1

for the Reyann Zero Delay Arcade USB Encoder Pc to Joystick for Mame Jamma & Other Pc Fighting Games for American Style Arcade Joystick & HAPP Style Arcade Buttons I’m using

[Target]
Hardware=pc

[Input]
SCAN_CODES=/dev/input/by-id/usb-DragonRise_Inc._Generic_USB_Joystick-event-joystick
BTN_UP=290
BTN_DOWN=291
BTN_LEFT=292
BTN_RIGHT=293
BTN_A=288
BTN_B=289
BTN_RESET=294
BTN_MENU=295
kbd_mode=0

ok big update I hope I recommend you use the module and it should work but you might have to say press a twice if your game has a start like you run it it will restart and now it should work and it MIGHT freeze every now and then but it should restart to fix it self