Daphne . Arcade joystick orientation wrong.
-
I had that with the exact same controller and ended up noticing that I had plugged in the up/down/left/right to the wrong joystick switches.
I'd try switching the connectors around to the expected orientation. That worked for me.
-
@pjft I can't change it I think. It's in a 5 pin ribbon type connection . I tried to change that back to front but never worked.
-
@beamquaker oh. Mine are separate. Are yours 5pin on both ends?
-
he means rotate the joystick physically
-
do you have the Dragonrise controller if you do ill set it up on mine and send you a working config
-
@pjft yes they are on both ends .
-
@grant2258 yes . Strangely the keyboard arrow buttons are also back to front. Like down is left etc.
-
ok lemme up a rom to pie ill check it out
-
[KEYBOARD]
KEY_UP = 273 114 2
KEY_DOWN = 274 102 2
KEY_LEFT = 276 100 1
KEY_RIGHT = 275 103 1
KEY_BUTTON1 = 306 97 1
KEY_BUTTON2 = 308 115 2
KEY_BUTTON3 = 32 113 3
KEY_START1 = 49 0 10
KEY_START2 = 50 0 0
KEY_COIN1 = 53 0 4
KEY_COIN2 = 54 0 0
KEY_SKILL1 = 304 119 0
KEY_SKILL2 = 122 105 0
KEY_SKILL3 = 120 107 0
KEY_SERVICE = 57 0 0
KEY_TEST = 283 0 0
KEY_RESET = 284 0 0
KEY_SCREENSHOT = 293 0 0
KEY_QUIT = 27 113 9
ENDThe button setup youll need to match to what you want the directions work fine with this config you need to go to digital mode though
-
if your still having problems check your joysticks orientation. When looking at it it should be towards your facing to the right here is a pic of mine.
https://drive.google.com/open?id=1HKdOxEquDKAKlEFdBh8mKbGXJQDTQxCF
-
@grant2258 it's not it's at the back facing away from me . It's that way because of the mounting bracket . I'm going to take them of and unscrew the stick from the mounting and hopefully rotate it to the left and screw it back on . It should mimic the picture you showed me and all my Daphne problems will be solved. Maybe
-
i just debugged it try this befor doing anything
it works for me this is for the dragon rise other joysticks will differ im just pasting the up down left right keys. The rest you know how to do
for analog setup.
KEY_UP = 273 114 1
KEY_DOWN = 274 102 1
KEY_LEFT = 276 100 0
KEY_RIGHT = 275 103 0for digital setup
KEY_UP = 273 114 1
KEY_DOWN = 274 102 4
KEY_LEFT = 276 100 2
KEY_RIGHT = 275 103 8ps only tested on dlair2
-
@grant2258 that didn't work unfortunately . No matter what I put the left is down . The keyboard arrows change with the config change but the analogue and digital do not. It's like the joysticks have been put together wrong . If the joysticks have a default ud LR and Daphne takes those directions from the first instance . But mine are wrong and the down is facing left etc. This would explain why it's not working . I did read u can't map the joystick in Daphne.
-
Can't you physically install the joystick rotated at 90 degrees counter-clockwise?
-
@pjft that is the plan . If I recall it has screws holding the mount to the joystick. I plan on unscrewing it and as you say rotate it. Ill need to remove all the buttons and do the same thing to the other joystick incase they conflict when I re mapping the retro arch keys.
-
I rotated the joystick successfully and now it's working fine in Daphne. Thanks for all the help .
-
Well the first think you need to do is setup your joystick right. Its easy enough to do remove the restrictor rotate the pcb insert pcb put restrictor back on. If you have windows you can test it with that or you can compile sdl-jstest on the pi to test. If you need any help with either let me know.
Ive been looking at the joystick code on the emulator itself and i have found the problem with the analogue stick. The joystick code is a bit messy its just been patched in and not very well its been hard coded for a . There is a certain truth you cant configure the joystick but it will use the dstick. The analog stick doesnt look to hard to fix ill look at it over the weekend. I will send you a worrking config from looking at the source that ill work for example the quit key wont work
-
@grant2258 it's all done and working fine now thanks . I am able to play dragon's lair 2 properly. Thanks for all the help.
-
@grant2258 said in Daphne . Arcade joystick orientation wrong.:
The joystick code is a bit messy its just been patched in and not very well its been hard coded for a .
Your lips to God's ears. I love Daphne a lot, but even the lead developer has admitted to it having poor joystick support. He's been meaning to revisit it for a while, but it's just never happened. Keyboard support is a lot more flexible and by extension, key-mapping a controller can solve a lot of problems that come up. For example, my particular setup always has my controller being at js1, while Daphne is hard-coded to only ever look at js0. Key-mapping my controller ended up being the only real solution.
-
I'm going to find another game and see how much my joystick really works as dragon's lair 2 is to hard to have a real test . So far left and down works and the sword but I can't be sure if right and up work as I suck at it.
Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.
Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.