Daphne . Arcade joystick orientation wrong.
-
@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.
-
well that would be a problem if its wanting diaginals the source will need updated.Here is the updated config remeber its button number -1 all the names are buttons you can use. I set all the others to 24 leave that as is for now there is a reason. I done this looking at the source so it should all be good.
[KEYBOARD]
KEY_UP = 273 114 24
KEY_DOWN = 274 102 24
KEY_LEFT = 276 100 24
KEY_RIGHT = 275 103 24
KEY_BUTTON1 = 306 97 24
KEY_BUTTON2 = 308 115 24
KEY_BUTTON3 = 32 113 joy start
KEY_START1 = 49 0 10 42
KEY_START2 = 50 0 42
KEY_COIN1 = 53 0 joy coin
KEY_COIN2 = 54 0 joy quit
KEY_SKILL1 = 304 119 joy pause
KEY_SKILL2 = 122 105 joy button1
KEY_SKILL3 = 120 107 joy button2
KEY_SERVICE = 57 0 joy button3
KEY_TEST = 283 0 joy console
KEY_RESET = 284 0 24
KEY_SCREENSHOT = 293 0 24
KEY_QUIT = 27 113 24
ENDKEY_BUTTON3 = start
-
@grant2258 I'm going to try this config as I tried Mach 3 and left and right only partially worked . As in u could tap to the left or right but would not scroll. My joysticks are supposed to be dragon rise .
-
yea the coin start1 has 4 entries instead of 3 might be that ive cleaned a few bits up but there is a bug in the code it should be picking that kind of error up. ill fix that too unless its something else causing it. I only have space ace what game is causing the problem?
Here is the fixed config if you still have problems post you config ill check it
[KEYBOARD]
KEY_UP = 273 0 24
KEY_DOWN = 274 0 24
KEY_LEFT = 276 0 24
KEY_RIGHT = 275 0 24
KEY_BUTTON1 = 306 0 24
KEY_BUTTON2 = 308 0 24
KEY_BUTTON3 = 32 0 joy_start
KEY_START1 = 49 0 24
KEY_START2 = 50 0 24
KEY_COIN1 = 53 0 joy_coin
KEY_COIN2 = 54 0 joy_quit
KEY_SKILL1 = 304 0 joy_pause
KEY_SKILL2 = 122 0 joy_button1
KEY_SKILL3 = 120 0 joy_button2
KEY_SERVICE = 57 0 joy_button3
KEY_TEST = 283 0 joy_console
KEY_RESET = 284 0 24
KEY_SCREENSHOT = 293 0 24
KEY_QUIT = 27 0 24
END -
@grant2258 Mach 3. No matter what I change on the joystick directions config it dosent change at all . Dragons lair 2 works alot better using the default Daphne config settings after rotating my joysticks.
-
Ok let me try expain whats going on here the code reads the joystick hats (digital mode) or analog for up down left right always not matter what .
Changing up down left and right wont change that or add the buttons right because it maps wrong into the code and cause all sorts of problems when you press a button that matches when it comes to directions.
Now the joystick code is in need of some work so dont touch any of the other settings accept the ones with joy_ because will map where they say the rest will do random things. so just change the joy_buttons to what you want the rest arent mapped right thats why they have a button number 24 next to them
ive started some of the updates to the code I should get it done the weekend
-
@grant2258
<threadjack>
Just curious...are you the fella that wrote daphne.sh (the one that sets up joystick) ?
If so I would be willing to take a look at it with you....I absolutely LOVE daphne. Never had the money to play it when I was a kid...those machines were expensive but oh man have I loved playing it on my retropie. Anywho was thinking about setting up some sort of read dialog in the script similar to the recast script but in shell not python. Or seeing if there was a way to logically map the controller based on what is already in the ES controller config file.
</threadjack> -
@grant2258 I would like to thank you for your patience and all the help you have gave me. Thanks for the explanation as well . It's a good emulator it just needs someone to sort it out.
-
if ok here is fix for the mapping not working properly its a updated binary
https://drive.google.com/file/d/1EkBeWcUCnbJ1PHEEo4uyoCpP6cnqqGqs/view
upload it to your pi
ssh in
type these commands inunzip daphne.zip
cd daphne
sudo sh install.shthis fix maps the buttons to the joystick properly from config file properly so you can set any buttons for any function with no voodoo happening.
Just note if you map the button up down left right they will work as buttons but that wont stop the hat working youll just be adding a extra up and down. No i didnt write the sh script mr shakz the first time i used this emulator is when beamquaker started this thread and i like dragons lair when i was a kid.
I will look at the joystick code for the analogue its just getting the time. If you install this update itll work as it should with mapping. If you dont update just stick to them joystick buttons i gave you in the ini
-
@grant2258 thanks. I have faith in you .
-
that was just a simple change to get you going the way you want and the way it should work
https://github.com/grant2258/daphne-emu/commit/23796d9f764fc1b996906dc1a6723bd891da04d3
i need to learn git hub just use the binary i posted for now if you need more buttons than the ini joy_ provides
-
Well i got a chance to look at the code I need to make a few changes before i get to the joystick. I dont know if ill get the analog joystick done this weekend but the key mapping code should be done soon so you can set the emulator up right. Ill post you instructions of how to update it when im done with the changes.
-
ok good news button mapping and the joystick is fihttps://github.com/grant2258/daphne-emu/blob/testing/dapinput.inixed for all joysticks with more than 2 axis (english the dragonwise will work now and the buttons map and work propely now and you dont have to add 1 anymore. I dont know about diaginal you might get lucky sometimes. . I would really to get a game that supports it to do it properly. So if you left me know a game ill look into it. Im trying to figure out to do a pull request properly to get it in the main github page. This really brings the emulator into a usable state.
for now youll just have to grab it form my repo not hard to do
fist you need to edit this file
sudo pico /home/pi/RetroPie-Setup/scriptmodules/emulators/daphne.shnear the top change
gitPullOrClone "$md_build" https://github.com/RetroPie/daphne-emu.git retropie
gitPullOrClone "$md_build" https://github.com/grant2258/daphne-emu.git testing
press ctrl + x then press y and then enter thats to save you can edit the file any way you like.
now its just simply time to install its like a new emulator its works properly. I knwo exactly what it done wrong and why it didnt work it was a minor oversite in a few places. The joystick will get more tlc when i get more feed back if there is problems.
cd home/pi/RetroPie-Setup/
sudo ./retropie_packages.sh daphne cleanthen install from source as normal let me know how you get on works perfect for me now
please check this has all the info you need to know about inputs
https://github.com/grant2258/daphne-emu/blob/testing/dapinput.ini
-
@grant2258 I'll try and set it up tomorrow. I think you can go diagonal in Mach 3 . This is amazing news . I'll gladly test it the minute I get a chance.
-
no problems enjoy
-
@beamquaker said in Daphne . Arcade joystick orientation wrong.:
I think you can go diagonal in Mach 3 .
You can indeed. 'Us Vs. Them' also allows diagonal movement.
-
i made a mess of my github ive made the the github again. Ill leave that repository as it is until i know what im doing with github. just let me know if its not working if it isint we can take it from there
-
@grant2258 I couldn't connect to your github URL unfortunately. I followed the instructions but had to change it back when it wouldn't connect. Sorry
-
ive been working on git gub its not the easiest thing if
sudo git clone --recursive --depth 1 --branch testing "https://github.com/grant2258/daphne-emu.git"
works you must have typed something wrogn in prevous instructionsbasically your just changing RetroPie to grant2258
and small retropie to testing.ok forgot to say above install from source not binary
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.