Using USB controller

Discussion and feedback on Construct 2

Post » Thu Jan 10, 2013 6:43 am

Does C2 support USB controllers? (ie: classic NES, etc) If so, what are some good resources to teach how to implement them into the game control behaviors?Rhindon2013-01-11 10:06:13
I'm seeking Narnia. Who wants to come with me! Aslan is on the move!
B
112
S
20
G
8
Posts: 741
Reputation: 13,636

Post » Thu Jan 10, 2013 7:32 am

I have awesome buffalo SNES USB controllers which are good for 2D games, but Chrome doesn't recognize them so I can't use them (it only supports popular things generic xbox controllers etc.)



Just use the gamepad extension.alspal2013-01-10 07:58:00
B
134
S
65
G
16
Posts: 1,765
Reputation: 19,188

Post » Thu Jan 10, 2013 2:05 pm

XBox 360 controllers should work with the Gamepad object.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,498

Post » Fri Jan 11, 2013 7:22 am

@alspal
So when the time comes that I implement a USB controller for my game, don't test using Chrome? I assume IE and FF browsers are okay?
Thank you for the info. :)Rhindon2013-01-11 10:06:54
I'm seeking Narnia. Who wants to come with me! Aslan is on the move!
B
112
S
20
G
8
Posts: 741
Reputation: 13,636

Post » Fri Jan 11, 2013 7:25 am

[QUOTE=Ashley] XBox 360 controllers should work with the Gamepad object.[/QUOTE]
Thank you, Ashley. Is there a running list of which USB controllers (by brand or console type) that work beside the XBox 360?
I'm seeking Narnia. Who wants to come with me! Aslan is on the move!
B
112
S
20
G
8
Posts: 741
Reputation: 13,636

Post » Fri Jan 11, 2013 8:59 am

[QUOTE=Ashley] XBox 360 controllers should work with the Gamepad object.[/QUOTE]

in the future we will implement the vibration?

the xbox 360 gamepad works great, just missing the vibration to make it complete!

thank you very much
B
11
S
3
Posts: 278
Reputation: 2,068

Post » Wed Jan 16, 2013 8:59 am

@ashley, do you know if we can add more controllers to Chrome's gamepad API?
B
134
S
65
G
16
Posts: 1,765
Reputation: 19,188

Post » Wed Jan 16, 2013 2:17 pm

It depends entirely on the browser, and the supported controllers may be different between other browsers too.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,498

Post » Wed Jan 16, 2013 2:34 pm

@Ashley - Is there a quick-list of what USB controllers C2 supports and on which browsers?
I'm seeking Narnia. Who wants to come with me! Aslan is on the move!
B
112
S
20
G
8
Posts: 741
Reputation: 13,636

Post » Wed Jan 16, 2013 2:57 pm

It's not to do with what C2 supports, it's only to do with what each browser supports. I'm not sure what the exact support is which is why we just recommend the XBox 360 controller which we know to work. You could try looking up documentation for individual browsers.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,498

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 4 guests