This is really frustrating me - all I want is to be able to control a menu option cursor with controller D-Pads. I have two cheap PS1 lookalikes that report axis changes when the D-Pad is pressed (this happens in Construct, the Windows Control Panel applet, and in hardwaretester.com/gamepad on both Chrome and Firefox).
But after reading this post, I now find that it's more common for D-Pads to report button presses - but even that seems inconsistent - the only other hardware I have access to are some Nintendo Switch joycons - for Left/Up/Right/Down, they report buttons:
14, 12, 15, 13
But Google's found the results for a "WII Classic D-Pad" is:
12, 11, 14, 13
(https://www.allegro.cc/forums/thread/608275/930495#target)
And for a PS2 controller:
15, 12, 13, 14
(flickr.com/photos/73073372@N00/3896185001)
So do I really have to take at least four different configurations into account?
I feel that I must be missing some really obvious and simple way of handling this!