Main > Raspberry Pi & Dev Board

Retropie Daphne Joystick Woes

(1/2) > >>

Vocalitus:
After reinstalling Daphne for the third time my Dragonrise encoder (which works with everything else) refuses to work with the said emulator.  So I rotate the joystick and where up is now left, it still doesn't work.

Looking on the net, it seems I am not the only one.

Am I stuck to playing the game with a wireless keyboard?

What gives?  Why does it not work with Retropie?

If I am wasting my time I'll gladly replace the Pi with a M73 (they are cheaper than an I-PAC2).

Gilrock:
I've gotten Daphne working with RetroPie with a couple different joystick/encoders.  I followed the comments in the dapinput.ini file and manually edited it to match my button numbers.
https://retropie.org.uk/docs/Daphne/

First from a terminal or ssh session run: jstest /dev/input/js0
Note what changes when you press each button and joystick direction.

Edit the 3rd column in the dapinput.ini and you add 1 to each value because 0 is reserved.  There are usually 2 different ways the joysticks can be mapped.  If you use the joystick connector on the encoder then its the same value for all 4 directions...i.e. for joystick0 you would enter 1 for all 4 directions.  That is the type of input where you may need to rotate your joystick.  I had to do that on my first one a few years ago.  The other way is you have a joystick that uses switch type inputs so every direction is its own switch value.

Vocalitus:
I literally did everything in your post.

I even added a switch for analog and digital on the encoder thinking that will fix it.

Still doesn't work.

My solution is to use an $5 Arduino clone to add regular keyboard commands to Retropie. 

Thanks for the help.

Gilrock:
I will add one thing I remembered.  I'm using a joystick that has leaf switches.  At first I tried to wire then into the encoder inputs labeled Up, Down, Left, and Right.  It did not work out well at all.  I noticed in the js0 program that when I activated a switch it would show 32768 and then back to 0 but every so often I'd see a 16384 value.  I moved all those joystick switch inputs down to the bottom row of button inputs and it started working flawlessly.  I never looked into it but with those large values it appeared to be expecting an analogue range for those connectors.

Vocalitus:

--- Quote from: Gilrock on April 30, 2021, 09:25:23 am ---I will add one thing I remembered.  I'm using a joystick that has leaf switches.  At first I tried to wire then into the encoder inputs labeled Up, Down, Left, and Right.  It did not work out well at all.  I noticed in the js0 program that when I activated a switch it would show 32768 and then back to 0 but every so often I'd see a 16384 value.  I moved all those joystick switch inputs down to the bottom row of button inputs and it started working flawlessly.  I never looked into it but with those large values it appeared to be expecting an analogue range for those connectors.

--- End quote ---

I see the same thing then I remembered the add one to the button control and the rest of the unused buttons for Space Ace was for some unused number.

I was hoping you could elaborate on the moving the joystick switch inputs down like moving key=left down to key=exit?

I think the controls are reversed at the moment.

Thanks

Navigation

[0] Message Index

[#] Next page

Go to full version