Controller profiles

Struggling with Fuse or trying to find an emulator with a specific feature. Ask your questions here.
User avatar
Mpk
Dynamite Dan
Posts: 1008
Joined: Tue Feb 09, 2021 8:10 am

Re: Controller profiles

Post by Mpk »

Magnus wrote: Sat Dec 04, 2021 2:28 pm
Mpk wrote: Wed Dec 01, 2021 10:12 am The d-pad works as Kempston, I just would Iike to be able to map it to send q,a,o,p instead. Playstation will be the same.
Here is a test version of my emulator with the possibility to choose from Kempston, QAOP, WASD and 5678 d-pad.

https://softspectrum48.weebly.com/uploa ... d_test.zip
Works great! Thanks!

I would suggest to allow mapping for the dpad for games that have weird controls, but this is pretty slick.
Magnus
Dizzy
Posts: 61
Joined: Sat Jan 06, 2018 6:47 am
Location: Sweden

Re: Controller profiles

Post by Magnus »

Mpk wrote: Sat Dec 04, 2021 3:36 pm Works great! Thanks!

I would suggest to allow mapping for the dpad for games that have weird controls, but this is pretty slick.
Glad to hear that :). Yes, I might as well add mapping individual keys to the d-pad.
My ZX Spectrum emulator project: https://softspectrum48.weebly.com.
Magnus
Dizzy
Posts: 61
Joined: Sat Jan 06, 2018 6:47 am
Location: Sweden

Re: Controller profiles

Post by Magnus »

Luzie wrote: Sat Dec 04, 2021 2:50 pm Is there a way to select a joystick if multiple USB-Joysticks are connected to the PC?
Currently I assume that there is only one joystick present, but I can identify all connected controllers, so it should be fairly easy to allow a choice of which joystick to use. Ideally both should work at the same time.

And thanks for the link to the test program, that will be useful!
My ZX Spectrum emulator project: https://softspectrum48.weebly.com.
Magnus
Dizzy
Posts: 61
Joined: Sat Jan 06, 2018 6:47 am
Location: Sweden

Re: Controller profiles

Post by Magnus »

Magnus wrote: Sat Dec 04, 2021 6:29 pm
Luzie wrote: Sat Dec 04, 2021 2:50 pm Is there a way to select a joystick if multiple USB-Joysticks are connected to the PC?
Currently I assume that there is only one joystick present, but I can identify all connected controllers, so it should be fairly easy to allow a choice of which joystick to use. Ideally both should work at the same time.

Edit: There may be a problem with the dual joystick adapter - I'm not sure how Windows handles that.

And thanks for the link to the test program, that will be useful!
My ZX Spectrum emulator project: https://softspectrum48.weebly.com.
User avatar
Luzie
Manic Miner
Posts: 910
Joined: Fri May 01, 2020 2:07 pm

Re: Controller profiles

Post by Luzie »

Magnus wrote: Sat Dec 04, 2021 6:36 pm Edit: There may be a problem with the dual joystick adapter - I'm not sure how Windows handles that.
Seems this Dual-Port-Adapter it´s handled as if I connect two Single-Port-Adapters:

Image
Magnus
Dizzy
Posts: 61
Joined: Sat Jan 06, 2018 6:47 am
Location: Sweden

Re: Controller profiles

Post by Magnus »

Luzie wrote: Sat Dec 04, 2021 6:43 pm
Magnus wrote: Sat Dec 04, 2021 6:36 pm Edit: There may be a problem with the dual joystick adapter - I'm not sure how Windows handles that.
Seems it´s handled as if I connect two single port adapters:

Image
Yes, that looks promising!
My ZX Spectrum emulator project: https://softspectrum48.weebly.com.
User avatar
Luzie
Manic Miner
Posts: 910
Joined: Fri May 01, 2020 2:07 pm

Re: Controller profiles

Post by Luzie »

Luzie wrote: Wed Dec 01, 2021 8:11 pm Alternative is to save the running state into ZEsarUX own .ZSF-Snashot-Format. This save all these settings in the snapshot and restore it on reload into the emulator.
I must correct myself here. ZesarUX .ZSF-Snapshot-Format DON´T save/restore Joystick-Settings.
Magnus
Dizzy
Posts: 61
Joined: Sat Jan 06, 2018 6:47 am
Location: Sweden

Re: Controller profiles

Post by Magnus »

Here is a test version of SoftSpectrum 48 which handles dual joysticks (tested with a PS3 and a PS4 controller). [mention]Luzie[/mention], can you give this a try with your joystick adapter? This is just a quick test so only one of the joysticks is configurable - the other is hard coded to Kempston.

https://softspectrum48.weebly.com/uploa ... r_test.zip
My ZX Spectrum emulator project: https://softspectrum48.weebly.com.
User avatar
Luzie
Manic Miner
Posts: 910
Joined: Fri May 01, 2020 2:07 pm

Re: Controller profiles

Post by Luzie »

Magnus wrote: Sun Dec 05, 2021 2:41 pm Here is a test version of SoftSpectrum 48 which handles dual joysticks (tested with a PS3 and a PS4 controller). @Luzie, can you give this a try with your joystick adapter? This is just a quick test so only one of the joysticks is configurable - the other is hard coded to Kempston.

https://softspectrum48.weebly.com/uploa ... r_test.zip
[mention]Magnus[/mention] Thanks for the test-version. Sadly only the fire-Keys work, no direction-controls: Only Kempston-Button on Port 1 and Only SPACE as Button on Port 2. Maybe dxdiag.exe can give you some hints/information about my hardware:

Image

Or this may help: ZEsarUX shows this under: F5 Menu / Settings / Hardware / Real Joystick Support / Joystick information when I press Joystick to "Direction Left" (Joystick on Port 1):
Image
Magnus
Dizzy
Posts: 61
Joined: Sat Jan 06, 2018 6:47 am
Location: Sweden

Re: Controller profiles

Post by Magnus »

Luzie wrote: Sun Dec 05, 2021 3:32 pm Sadly only the fire-Keys work, no direction-controls: Only Kempston-Button on Port 1 and Only SPACE as Button on Port 2.
Strange that the buttons work but not the directional controls. Maybe ATARI style joysticks are detected in some other way than USB controller d-pads? I'll see if I can find some information about this, but for now I don't have any ideas :?.
My ZX Spectrum emulator project: https://softspectrum48.weebly.com.
Magnus
Dizzy
Posts: 61
Joined: Sat Jan 06, 2018 6:47 am
Location: Sweden

Re: Controller profiles

Post by Magnus »

Luzie wrote: Sun Dec 05, 2021 3:32 pm Or this may help: ZEsarUX shows this under: F5 Menu / Settings / Hardware / Real Joystick Support / Joystick information when I press Joystick to "Direction Left" (Joystick on Port 1):
Image
Interesting. The values I check for are 0 for UP and then adding 4500 for every 45 degrees, so LEFT is 27000. I'll have to do some more research.
My ZX Spectrum emulator project: https://softspectrum48.weebly.com.
Post Reply