New Chrome version supports DirectInput gamepads

Discussion and feedback on Construct 2

Post » Tue Mar 05, 2013 3:16 am

I did this yesterday, what a massive difference using a gamepad is for my platformer...using the 360 wired controller in chrome. It gave me a whole new feeling that it's a real game, the keyboard feels soul-less ;p Plus now I can pretend its on an Ouya...

Initially, I went to the test site Scirra set up,it didn't work. I found a google html5 page with a running game (hurdles). That worked! So I knew chrome was fine. I set it up using the tutorial on this page:

Tutorial
Google Hurdles game
B
18
S
1
G
1
Posts: 34
Reputation: 1,661

Post » Tue Mar 05, 2013 3:29 am

A test I made with C2 doesn't work, but the hurdles game does work. Although weirdly. L1/R1 becomes Left and Right for that apparently. inkBot2013-03-05 03:32:09
B
73
S
20
G
10
Posts: 524
Reputation: 9,896

Post » Wed Mar 06, 2013 12:12 pm

Has anyone tried it with a PS3 controller?
B
134
S
65
G
16
Posts: 1,765
Reputation: 19,188

Post » Wed Jul 24, 2013 4:37 am

About the ps3 controller i know that it already works with html5 on chrome/Firefox , now im trying to use my playstation2 dualshock2 controller (which my windows detects fine as a gamepad) and seems neither FF or chrome detect it as plugged :/ , but the weird thing is that people says that their ps2 controllers work, i think maybe is the adapter i'm using or anything else   
B
1
Posts: 1
Reputation: 127

Post » Mon Feb 24, 2014 5:48 pm

Bad news, Chrome dropped DirectInput gamepads.
B
96
S
25
G
20
Posts: 3,052
Reputation: 22,638

Post » Mon Feb 24, 2014 6:21 pm

@Joannesalfa Does that mean that no controllers are supported now? (Xbox 360 controller? for example...)
B
49
S
11
G
10
Posts: 1,833
Reputation: 14,418

Post » Mon Feb 24, 2014 10:22 pm

Huh? Where did you reference that?

Earlier this month they started allowing for them in the developer version of chrome (canary)
https://codereview.chromium.org/135523006/
B
134
S
65
G
16
Posts: 1,765
Reputation: 19,188

Post » Mon Feb 24, 2014 11:17 pm

I think they had problems with DirectInput crashing a lot so now only support XInput controllers for the time being. However @alspal's link shows they're looking in to using raw input (directly accessing USB data), which is like writing their own driver for it, so maybe that will work even better.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544

Post » Tue Feb 25, 2014 3:57 pm

@BluePhaze Xbox 360 and other Xinput controllers work, but It's bad excuse to ask the gamers buy new controllers are compatible with Xinput because a lot of users already have DirectInput controllers. Basically common USB gamepad is directinput controller, not Xinput controller. I hope you know what I mean.

@alspal my USB gamepad has worked in older stable version of chrome, but new version stopped working now. (Chrome 32-33, also latest version of Firefox). in Cr.bug, about the reference, responsible claimed he dropped directinput gamepads due to instability.

Your link says everything about Raw Input for gamepads not directinput like Ashley said.
I know a problem, raw input is designed for keyboard and mouse, if someone has special mouse like has more than 5 buttons, it would conflict with gamepad, unfortunately D-pad doesn't work. I hope they should give 100% support to all gamepad buttons and avoid conflict (Gamepad Index and broken buttons) and we may implement extra to ask users to configure their gamepad in our wizard setup.
B
96
S
25
G
20
Posts: 3,052
Reputation: 22,638

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 11 guests