How Do I Configure Dual Gamepad

Get help using Construct 2

Post » Mon Nov 04, 2013 6:57 am

I'm on progress to make game which provide Gamepad Input Method.
It's a success to use one usb gamepad,but the problem is how to create event which is recognize dual gamepad?

http://image.en.09635.com/2012-8/11/USB-Dual-Shock-Twin-Gamepad-STK-8032-426.jpgDzaky Alkaff2013-11-04 06:59:28
B
11
S
2
G
2
Posts: 62
Reputation: 2,153

Post » Mon Nov 04, 2013 1:18 pm

In the gamepad object actions, you can specify getting values from the Left or Right Thumbstick.

So.

On Left Stick X < 0 -> move player left
On Right Stick X > 0 -> shoot right

B
87
S
44
G
16
Posts: 1,002
Reputation: 17,932

Post » Mon Nov 04, 2013 2:33 pm

Not The Thumbstick, I mean the whole 2 gamepads.
because I want to make a multiplayer game using twin usb gamepads(like the picture above).
I have to configure 2 gamepads at eventsheet, but how??
B
11
S
2
G
2
Posts: 62
Reputation: 2,153

Post » Mon Nov 04, 2013 3:26 pm

There are two ways handle more than 1 controller.

A. Every tick loop through each controller registered.
Check for each controller has state with loopindex

B. Provide an Event for each controller. You can set wich controller to check in the param for gamepad input.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,018

Post » Mon Nov 04, 2013 3:43 pm

I've tried the option B. But when I run the game on preview, the game still won't detect any gamepad input.
The event worked only for single gamepad?.
what should I do??
B
11
S
2
G
2
Posts: 62
Reputation: 2,153


Return to How do I....?

Who is online

Users browsing this forum: biasaur, Unconnected and 9 guests