iOS Game Controller Dpad

I’m following the information here:
http://blogs.unity3d.com/2013/10/11/unity-4-2-2-brings-ios-game-controller-support/

to try and write some controller support for someone else to test for me (I don’t have a controller yet).

Can anyone tell me which direction maps to which key code for the Dpad? The info just says:

Dpad joystick button 4 … joystick button 7

Can anyone help on this?

I have the same question,
Please help

Yep - landed on the following working setup:

FORWARD = joystick button 4
BACKWARD = joystick button 6
LEFT = joystick button 7
RIGHT = joystick button 5

In other words - clockwise from the top.

1 Like

Thanks

I don’t understand why I have to waste a lot of time doing a lot of Google searches (It’s not that simple, written a lot of words in Google and finally found this) instead of having it simply available in the documentation?

The documentation isn’t really good for MFi, and I don’t know how to test it on my Windows machine, though I get it up and working in a short time, I really suggest they improve the documentation, specially that I haven’t found any YouTube tutorial to cheat from and get quick glance for MFi controllers.