Generic Gamepad - D-pad issues

Discussion and feedback on Construct 2

Post » Tue Apr 18, 2017 6:33 am

My gamepad is a generic gamepad, but it still works on most programs and games, and it works on steam. While programming the controls for my game, the D-pad does not work, but the other buttons do. I'm not sure why.

The events are as follows:

Gamepad 0 D-pad left is down - Simulate platform pressing left
Gamepad 0 D-pad right is down - Simulate platform pressing right

I also set an event and variable to check whether a gamepad is connected, ran the game in Debug mode and everything checked out okay. Like I said, other buttons work just fine, just not the D-pad.

Any advice? :?:
B
24
S
9
Posts: 109
Reputation: 2,002

Post » Wed Apr 19, 2017 12:37 am

Have you tested with other controllers? Maybe your controller sets the d-pad as other buttons instead of POV?
B
124
S
43
G
41
Posts: 849
Reputation: 28,235

Post » Wed Apr 19, 2017 4:52 am

andreyin wrote:Have you tested with other controllers? Maybe your controller sets the d-pad as other buttons instead of POV?

I only have this one and some PS4 controllers.
B
24
S
9
Posts: 109
Reputation: 2,002

Post » Wed Apr 19, 2017 5:51 am

andreyin wrote:Have you tested with other controllers? Maybe your controller sets the d-pad as other buttons instead of POV?

I debugged it and, yeah I think you're right. It says I pressed buttons 16 and 17 when I press the d-pad buttons. My gamepad has a analog button, and that didn't seem to help either.
B
24
S
9
Posts: 109
Reputation: 2,002

Post » Wed Apr 19, 2017 10:24 am

https://www.youtube.com/watch?v=W2fqdCFyuiA
I followed this tutorial and it worked for me (but I had to change it to "≤ 99" for the left and up button).
B
9
S
1
G
1
Posts: 42
Reputation: 1,213

Post » Wed Apr 19, 2017 11:07 am

Plowman wrote:https://www.youtube.com/watch?v=W2fqdCFyuiA
I followed this tutorial and it worked for me (but I had to change it to "≤ 99" for the left and up button).

Just watched it, and I'll try it later. It seems to be just what I needed! Thanks a lot! :mrgreen: :mrgreen: :mrgreen:
B
24
S
9
Posts: 109
Reputation: 2,002


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 13 guests