Everything worked flawlessly, I really appreciate the event lookup code, I never would have figured that out. I did notice that if a hotkey was enabled that it does not work which I believe you mentioned in the other thread. All in all it does exactly what I wanted it to do.
@uraverageplayer What emulator/game are you starting when it's not working ?
Configuring the joysticks in EmulationStation would automatically create a configuration for RetroArch based emulators (the ones that start with lr-), but certain emulators are not auto-configured (i.e. advmame or mame4all).
TLDR; -- map your USB encoder to match USB console pads
REYANN ENCODER appears to work best as
0:B, 1:A, 2:R1, 3:Y, 4:X, 5: L1, 6: L2, 7:R2, 8:SELECT, 9: START
Did some more work with this. The joysticks work great when (when mapping of multiple are the same - as discussed). There was an issue where I started to need to remap per system if I was using USB console-like controllers.
@grant2258 I have followed this video, but I can't get it to work properly. Maybe it is a version issue (I use a CH-616). When I connect the COIN and COUNTER to the encoder, the voltage is always running. It seems like the contact of the coin module is not potential free. So when I try to use it in retropie, it constanly thinks I am throwing coins in it. Did anyone get this running properly?
I can't see in the images well enough to know exactly where they are, but those encoders look a lot like the ones I got. My encoders had two sets of plugs for the joystick - one the 5 pin white cable you're using, and the other used 4 of those 2-pin plugs. They should be labelled as such. If you have anything in the 2-pin dedicated joystick plugs, you need to move them to another plug. That will cause interference of the signal.
^Someone posted this for me and it was the solution. I put the led connector in the left joystick input connector. Thanks for the help man
RetroPie does controls per controller/encoder name, so if two controllers share the same same name, if you change one, you change the other. If you have 2 different controllers using the dragon rise encoder, but they are different, it may be that one is wired up differently than the other.
accept analouge input by switching the dragonrise mode to analogue...
when the light is orange/red its in analog mode when its green its digital. if you want a true analog control you are probably going to have to add a analog sensor of some sort to it though. The mode button press changes this
@jayofcastleford those buttons are probably analogue rather than the digital 1 or 0
The rubber will be less conductive, and the more it is squashed, the lower the resistance. If you have access to a multimeter, try measuring the resistance between the 2 points then vary the levels of pressure and see what happens