Closed pilcherd closed 1 year ago
I noticed that there is also /sd/arcade.cfg too. I just edited that to event1 and saved it, then run the launCharc command line to run the elf. The /sd/arcade.cfg gets set back to event0. Odd.
If I remove the keyboard and ssh in after a clean restart, the game refuses to start and says this in the log
pi@retropie:~ $ cat /tmp/McAirpos.log
launCharc starting /home/pi/RetroPie/roms/makecode/arcade-SRP-Mission-Cleanup.elf with automatic gamepad mappings...
Highest found input event number: 1
Found no gamepads or keyboards to configure...
Please try the "nomap" option and configure /sd/arcade.cfg manually. If stuck, please read or open a related issue at https://github.com/Vegz78/McAirpos.
With this situation, I run evtest and see this:
pi@retropie:~ $ evtest
No device specified, trying to scan all of /dev/input/event*
Not running as root, no devices may be available.
Available devices:
/dev/input/event0: gpio_keys
Select the device event number [0-0]: 0
Input driver version is 1.0.1
Input device ID: bus 0x19 vendor 0x1 product 0x1 version 0x100
Input device name: "gpio_keys"
Supported events:
Event type 0 (EV_SYN)
Event type 1 (EV_KEY)
Event code 1 (KEY_ESC)
Event code 23 (KEY_I)
Event code 24 (KEY_O)
Event code 28 (KEY_ENTER)
Event code 29 (KEY_LEFTCTRL)
Event code 42 (KEY_LEFTSHIFT)
Event code 44 (KEY_Z)
Event code 45 (KEY_X)
Event code 56 (KEY_LEFTALT)
Event code 57 (KEY_SPACE)
Event code 103 (KEY_UP)
Event code 105 (KEY_LEFT)
Event code 106 (KEY_RIGHT)
Event code 108 (KEY_DOWN)
Event code 116 (KEY_POWER)
Properties:
Testing ... (interrupt to exit)
Event: time 1673570779.023149, type 1 (EV_KEY), code 56 (KEY_LEFTALT), value 1
Event: time 1673570779.023149, -------------- SYN_REPORT ------------
Event: time 1673570779.163106, type 1 (EV_KEY), code 56 (KEY_LEFTALT), value 0
Event: time 1673570779.163106, -------------- SYN_REPORT ------------
Event: time 1673570779.843096, type 1 (EV_KEY), code 57 (KEY_SPACE), value 1
Event: time 1673570779.843096, -------------- SYN_REPORT ------------
Event: time 1673570779.953167, type 1 (EV_KEY), code 57 (KEY_SPACE), value 0
Event: time 1673570779.953167, -------------- SYN_REPORT ------------
So it looks like there is an input device and it is responding.
Hi @pilcherd,
Thanks for trying McAirpos and reaching out! Sorry that it is not working for you right away.
I believe you have 3 options that might solve your problem here on a default automatic curl installation, since Picade is registered as EV_KEY type keyboard controller. Either:
-Unplug your regular keyboard when starting the game, and the auto search functionality will only find the Picade "keyboard" controllers, or
-Set the option keybswap
after launCharc
in _essystems.cfg to use the last keyboard found instead of the first, or
-Which is probably the preferred option, like @rdmueller did a while ago; set the option nomap
after launCharc
in _essystems.cfg and set everything in /sd/arcade.cfg manually, like you have attempted, and it will not be overwritten.
[Picade] Button mapping(working with manual /sd/arcade.cfg edit and nomap option) https://github.com/Vegz78/McAirpos#Usage
I hope any of these works for you!
Br, Vegard
Hi @pilcherd,
Thanks for trying McAirpos and reaching out! Sorry that it is not working for you right away.
I believe you have 3 options that might solve your problem here on a default automatic curl installation, since Picade is registered as EV_KEY type keyboard controller. Either: -Unplug your regular keyboard when starting the game, and the auto search functionality will only find the Picade "keyboard" controllers, or -Set the option
keybswap
afterlaunCharc
in _essystems.cfg to use the last keyboard found instead of the first, or -Which is probably the preferred option, like @rdmueller did, a while ago; set the optionnomap
afterlaunCharc
in _essystems.cfg and set everything in /sd/arcade.cfg manually, like you have attempted, and it will not be overwritten.[Picade] Button mapping(working with manual /sd/arcade.cfg edit and nomap option) https://github.com/Vegz78/McAirpos#Usage
I hope any of these works for you!
Br, Vegard
Hi Vegard,
In my post above I had actually removed the USB keyboard and got a different error. Do you know why that might occur?
Thanks
I worked it out.
The nomap command line option is needed (per the instructions) to make the launCharc program use the file in /sd. So I edit the emulation station configuration launch command in here:
sudo vi /etc/emulationstation/es_systems.cfg
And added the nomap option to the launCharc line before the rom. And now it runs from the menu.
Thanks!
Glad to hear!
Happy retro games making and playing!
Hi
I have the latest RetroPie, and installed McAirpos using the automatic retropie curl command. It is installed and does run an ELF MakeCode game, however I am having issues with keyboard and sound.
When my USB keyboard is plugged in to the Picade, I have two input events. /dev/input/event0 - USB /dev/input/event1 - Picade keyboard
I am trying to run McAirpos with the keyboard plugged in, and so I copied the Picade example and edited it to use event1, but the McAirpos log always shows it trying to use event0:
This is my ~/McAirpos/McAirpos/Makecode/sd/arcade.cfg file:
Is there a reason the SCAN_CODES line is being ignored?
Many thanks, Dave