PDA

View Full Version : How do I use the digital pad (D-pad) instead of the analog stick?



Loc
07-26-2015, 12:42 PM
Just downloaded Zelda Classic for Windows.

Does anyone know how I can use my controller's digital pad? My controller seems to work fine, but I have to use the analog stick to move Link around. I see no way to customize up/down/left/right in the controller options.

Anarchy_Balsac
07-26-2015, 12:49 PM
Check to make sure your Dpad is calibrated, other than that, you may simply have to get one that doesn't have an analog stick. There's a USB NES controller that works perfectly for this sort of thing. It's what I use.

ZoriaRPG
07-26-2015, 01:10 PM
Check to make sure your Dpad is calibrated, other than that, you may simply have to get one that doesn't have an analog stick. There's a USB NES controller that works perfectly for this sort of thing. It's what I use.

I advise using the SNES/SFC pad, as newer quests do use the additional buttons. A SNES/SFC pad gives you A, B, X, Y, R, L, Select, Start, U/D/L/R. The ZC buttons are: U/D/L/R/A/B/L/R/Ex1/Ex2/Ex3/Ex4/Start/Map. If you don't put the map button on your controller, you can map up to three Ex buttons on a SNES/SFC controller. With the NES pad, you can't even map L/R.

Anarchy_Balsac
07-26-2015, 01:41 PM
True, the SNES pad has those advantages, but it lacks the feel of the NES one.

Gleeok
07-26-2015, 02:11 PM
What controller do you use? Most alalog gamepads (logitech, playstation) have an analog button on them you can toggle.

Loc
07-26-2015, 02:14 PM
What controller do you use? Most alalog gamepads (logitech, playstation) have an analog button on them you can toggle.

It is a Xbox 360 controller for Windows (not for the Console).

Every other game and emulator lets me customize up/down/left/right just like A/B/Select/Start. This one doesn't?

Anarchy_Balsac
07-26-2015, 02:22 PM
It SHOULD, though I'm not entirely sure it would fix your problem even if it did. It would still be nice to rule it out though.

Loc
07-26-2015, 02:26 PM
It certainly would. The digital pad is interpreted as a "point-of-view hat" in the drivers.

Anarchy_Balsac
07-26-2015, 02:36 PM
Then it's VERY possible ZC wouldn't recognize it in the first place, which may also be why it is not working right now.

Gleeok
07-26-2015, 08:15 PM
It is a Xbox 360 controller for Windows (not for the Console).

Every other game and emulator lets me customize up/down/left/right just like A/B/Select/Start. This one doesn't?

Sounds like an XInput issue. allegro runs off of older DirectX versions, and Microsoft changed the way POV works for XBox controllers. I haven't actually tested this at all since I don't own one, but it seems like a logical assumption.

The thing is, I know that some people use XBOX controllers with ZC, so I'm sure there is a solution to this. Hopefully one of those guys can chime in otherwise I'll have to investigate further into the issue.

Anarchy_Balsac
07-26-2015, 08:49 PM
Ah, nm, I didn't read it right, sorry about that.

Tim
07-26-2015, 09:47 PM
I have an XBox one that does the same thing.
I'm sure I could do some mapping with Joy2Key or something... But I also have two iBuffalo controllers that are a mock of the SNES pads.

ZoriaRPG
07-28-2015, 12:19 AM
Sounds like an XInput issue. allegro runs off of older DirectX versions, and Microsoft changed the way POV works for XBox controllers. I haven't actually tested this at all since I don't own one, but it seems like a logical assumption.

The thing is, I know that some people use XBOX controllers with ZC, so I'm sure there is a solution to this. Hopefully one of those guys can chime in otherwise I'll have to investigate further into the issue.

Use XP. That's a solution to blocking all of Microsoft's changes.

Really though, there is probably a patch for the way the controller input API works, like a replacement dll.

I had forgotten tat U/D/L/R can't be mapped (for controllers, unlike keyboards), like the other buttons. If you add the ability to map those, it may fix it, for everyone.

Tamamo
07-28-2015, 09:55 AM
It's possible I no longer use a Xbox controller upgraded to PS4 controller which imho is the best damn controller ever 2nd to the wii controller. That thing was just fun as hell to use.

Gleeok
08-01-2015, 05:13 AM
Here's why we don't support it:

https://msdn.microsoft.com/en-us/library/windows/desktop/microsoft.directx_sdk.reference.xinputgetcapabilit ies%28v=vs.85%29.aspx

(Note: Scroll down to Platform Requirements)


Microsoft decided to not make it backwards compatible with DirectInput. No idea why.
Now there's no way in hell the new minimum requirements for ZC is going to be windows 8 (or whatever), but, there is a way to load system dlls on windows without having to link, or even have, them at all. This is not actually that difficult to do, and maybe something someone wants to possibly add at some point in the future. By someone I mean someone with a new windows OS, and whom can actually test it.

Gleeok
08-01-2015, 07:30 PM
Now that I think about it the xinput stuff is pretty simple and wouldn't be hard to do at all. I just need to know what version of "xinput*.dll" is on everyones computer. (Should be in Win32 or System32 folders)

Anarchy_Balsac
08-01-2015, 07:55 PM
Well if M$ would quit with their careless attitude towards backwards compatibility, it wouldn't even be an issue. That and people wouldn't still be emulating windows 98

Gleeok
08-03-2015, 02:21 AM
I guess no even has it... Oh well. I made an XInput wrapper which I'll add to ZC some point. Hopefully before next release.