Various gamepad issuse

I have encountered various issues with gamepad implementation as follows:

  • Left dpad does not repond (Xbox / PS4 gamepads on Windows and HTML5 builds)
  • Deadzone sometimes missing (Xbox gamepad on Windows build - HTML5 build is fine. PS4 gamepad on HTML5 missing deadzone)

Are these known issues?

Should I be manually implementing a deadzone in my own code?

The documentation states only the Xbox controller is supported in Windows - is this still the case?

@dapetcu21 was working on gamepad setups / testing I believe?

@AGulev might know about the left dpad issue.

A manual / user customizable deadzone is probably a good idea.

From my testing, XInput gamepads worked without issue on Windows. I know there were issues on macOS with wireless DS4 and wireless xbox one. Also, should probably retest now that Catalina includes drivers for these gamepads.

2 Likes

Any progress on this?

Still experiencing the two issues detailed above.

I was looking at the gamepad tester application defold posted on GIT as part of my learning defold.

I have two generic gamepads that work fine in windows. I downloaded the JoyTester.exe app that was recommended… That also sees my game pad. The GDC app that was posted does little for me.

When I run the gamepad tester… nada… nothing.

I guess if only XBox pads are proven to work I will get one of those…

Would you mind trying the latest version: https://github.com/defold/defold/releases/tag/1.2.169

image

First picture is the tester with me moving and pressing a button.

image

The app in windows… not detecting the same gamepad.

This one also works for me… has the source code attached C or C++ I think.