Forum Replies Created
-
AuthorPosts
-
francesconumaParticipant
How are you going to connect the kit to raspberry? Gpio? Keyboard encoder?
[EDIT] ok, it has an USB interface… I don’t now if it could work…francesconumaParticipantYou have to look for a file named Makefile.. I can’t verify now the exact position..
francesconumaParticipantDo the controls on the RetroArch emulators (NES, Atari 2600, PSX, Mega Drive, etc.) work for you?
Sorry I didn’t try yet. I can suppose not, also for me.
francesconumaParticipantGreat, thanks all
francesconumaParticipantNo response at all.
francesconumaParticipantI think the solution is quite simple, but we need a c or python script traslating from gpio to evdev, and someone who can write it. I think emulationstation programmer is not really interested on the problem because there is a gpio adapter we can buy on the site to connect retro joystick. So we have to find a solution by ourselves…
francesconumaParticipantYou need to download clearmame pro and process your romset via the dat file inside mame4all-pi. Instruction s on clearmame site…
francesconumaParticipantThere is a function on clearmame to merge parent and clones in the same rom. Maybe this should help. Some game also needs samples inside mame sample folder.. I rebuild my romset with cleatmame using the .dat file present inside mame4allpi folde
francesconumaParticipantand none is working? The error is?
If you launch mame from mame4all-pi directory, does they work?francesconumaParticipantAre the roms in zip format (maybe the problem is .7z)?
francesconumaParticipantMaybe someone could mix snesDEV with retrogame… Any c programmer here?
francesconumaParticipantMame4all or advancemame?
francesconumaParticipantMaybe using a wrong romset. Supported is 0.37b5.
francesconumaParticipant[quote=14017]#!/usr/bin/python
import time
from evdev import UInput, ecodes as e
import RPi.GPIO as GPIO# GPIO PIN
pin_esc = 24ui = UInput()
# Bools to keep track of movement
key_esc = FalseGPIO.setmode(GPIO.BCM)
GPIO.setup(pin_esc, GPIO.IN, pull_up_down = GPIO.PUD_UP)
try:
while True:
if (not key_esc) and (not GPIO.input(pin_esc)):
key_esc = True
#print(“Button Pressed”);
ui.write(e.EV_KEY, e.KEY_ESC, 1); # KEY_ESC down
#ui.write(e.EV_KEY, e.KEY_F4, 1); # KEY_F4 down
ui.syn()if (key_esc) and (GPIO.input(pin_esc)):
key_esc = False
#print(“Button Released”);
ui.write(e.EV_KEY, e.KEY_ESC, 0); # KEY_ESC up
#ui.write(e.EV_KEY, e.KEY_F4, 0); # KEY_F4 up
ui.syn()time.sleep(0.3);
except KeyboardInterrupt:
ui.close()
GPIO.cleanup()[/quote]the Python script is considering rebounce as in retrogame did you try with a “shot” button?
francesconumaParticipantI wrote to retrogame.c programmer asking for help.
francesconumaParticipantI’m using mame4all-pi as emulator and It’s autoloaded via the /etc/profile file. Just changed “emulationstation” with “/…??/emulators/mame4all-pi/mame”
francesconumaParticipantOh, bad news here!
This is the code I used:https://github.com/adafruit/Adafruit-Retrogame/blob/master/retrogame.c
How did you resolve the problem?
-
AuthorPosts