Gamepad API

Discussion and feedback on Construct 2

Post » Sun Jan 22, 2012 12:33 pm

@Ashley, I just found this on the internet. Might be usefull for C2 some day?

http://active.tutsplus.com/tutorials/games/an-introduction-to-the-html5-gamepad-api/
B
29
S
12
G
7
Posts: 740
Reputation: 7,849

Post » Sun Jan 22, 2012 1:22 pm

Would be great if it works out for C2. 8D
B
50
S
11
G
7
Posts: 274
Reputation: 8,146

Post » Sun Jan 22, 2012 3:54 pm

We're definitely going to support that the minute browsers do, but right now there's only a one-off developer build of Firefox that supports it - no mainstream browsers support it yet. Hopefully in a few months at least Chrome and Firefox will support it and then we'll make a plugin pronto!
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580

Post » Sun Jan 22, 2012 8:28 pm

@smitchell, thanks greatly for posting this link! The demo works with my Logitech Dual Action controller - even if it's the 5/6/7/8 trigger buttons that control the movement and not the joysticks or D-pad. Still, I'm guessing that's just a matter of reconfiguring the button press assignments.

And, as Ashley says, it's only the one-off developer build of Firefox that currently supports it.

Still, I can anticipate loads of fun ahead!
B
105
S
20
G
12
Posts: 549
Reputation: 20,320

Post » Sun Jan 22, 2012 8:29 pm

No probs , Its going to be released to all browsers. Its just still in development i guess. So only on firefox right now
B
29
S
12
G
7
Posts: 740
Reputation: 7,849

Post » Mon Jan 23, 2012 3:42 am

[QUOTE=smitchell]... Its going to be released to all browsers ...[/QUOTE]
Not so much a question of release, as of implementation. The Web Gamepad API spec is in W3C draft at the moment, and it's up to individual browser manufacturers to implement it.

Seeing it's still in draft, Firefox is just trying it out in their developer builds. Google also has a draft API editor, so we might see a Chrome implementation sometime soon.

And maybe there'll be an implementation in IE12 (a buggy one, no doubt) Velojet2012-01-23 03:43:37
B
105
S
20
G
12
Posts: 549
Reputation: 20,320

Post » Sun Aug 19, 2012 4:51 am

There is something bothers me a lot...

My gamepad is Perfect Choice PC-120391 includes vibration, it's USB Network Joystick Driver, this design looks like Playstation gamepad.

I tried to enable my Gamepad using chrome://flags, but it didn't work and sometimes it says needs to be connected.

I went panel control to test my gamepad it works very well, BUT it didn't work on HTML5 apps.


Do i need report to Chrome and Firefox?
B
96
S
25
G
20
Posts: 3,054
Reputation: 22,642

Post » Sun Aug 19, 2012 5:35 am

My gamepad, Leadership Gamer doesn't work too (latest chrome). It's not even detected. I guess html5 gamepad support still has a way to go :\
B
58
S
13
G
10
Posts: 632
Reputation: 12,505

Post » Sun Aug 19, 2012 1:19 pm

I wouldn't bump old threads if you can, this thread is now out of date. Since this thread, Construct 2 has gained built-in support for the Gamepad API and Chrome 21 has been released with support for gamepads on by default - you don't need to change anything in chrome://flags.

Unfortunately that means if it doesn't work then your gamepad is not recognised... possibly file a bug at crbug.com and see if Google can fix it.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 9 guests