gamepad not working with NodeWebkit preview

Discussion and feedback on Construct 2

Post » Sun Jan 05, 2014 10:33 pm

I'm using an XBox360 controller along with the gamepad object. When I preview my game using Chrome it works perfectly but when I try to preview in NodeWebkit (which is what I'm developing for) it doesn't work. It's like the gamepad isn't detected or something. Any ideas?

EDIT: I've added a simple capx file. If anyone is using windows 8.1 could you please test this and let us know if you get the same result. Thank you.

http://www.dennisburch.info/gamepadtest.capxBurvey2014-01-06 18:15:06
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,986

Post » Mon Jan 06, 2014 12:30 pm

Just tried it here and it worked fine in node-webkit preview. Node-webkit is based on Chrome so it would make sense that they work the same.
Scirra Founder
B
395
S
232
G
88
Posts: 24,371
Reputation: 193,762

Post » Mon Jan 06, 2014 3:24 pm

@ashley That's what I figured too. I have no idea what to do next. I can switch between the two previews and Chrome works and Node-webkit doesn't. I even tried exporting rather then going through the preview and I get the same results. The only thing I can figure is Node-webkit needs to have the gamepad enabled or something but I really have no clue. I also have keyboard movement set up in the game as well as the gamepad and everything functions as it should in both previews with that. I'm stumped.
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,986

Post » Mon Jan 06, 2014 3:54 pm

that's really weird, I've never had that problem. Does it work in exported node-webkit?
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,679

Post » Mon Jan 06, 2014 4:05 pm

@sqiddster No, it doesn't :(

I'm using windows 8.1. Could there be some security setting that has to be disabled/enabled or something?

EDIT: Just out of curiosity I made an extremely simple capx with nothing but a platform and sprite to move around. I added the gamepad object and simulated movement controls for it. I get the same results, when I move the sprite around in the chrome preview with the xbox360 controller it works just as expected. As soon as I switch over to the node-webkit preview it doesn't work.Burvey2014-01-06 16:25:34
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,986

Post » Mon Jan 06, 2014 4:23 pm

I'm still on Win8 and it works.. dang, wonder if it's broken on 8.1?

Can you reproduce it by making a simplified sample .capx?
B
123
S
43
G
41
Posts: 847
Reputation: 28,206

Post » Mon Jan 06, 2014 4:26 pm

[QUOTE=andreyin] I'm still on Win8 and it works.. dang, wonder if it's broken on 8.1?

Can you reproduce it by making a simplified sample .capx?[/QUOTE]

@andreyin Yep, see above post :)

Is there anyone else out there with Windows 8.1 that can test this please?Burvey2014-01-06 16:40:44
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,986

Post » Mon Jan 06, 2014 5:00 pm

@Burvey

Can you post the simplified .capx so people can just download it and test?
B
123
S
43
G
41
Posts: 847
Reputation: 28,206

Post » Mon Jan 06, 2014 6:13 pm

http://www.dennisburch.info/gamepadtest.capx

Try that in windows 8.1 if you can. Gamepad works in Chrome but not with Web-Nodekit.
B
61
S
20
G
56
Posts: 1,077
Reputation: 35,986

Post » Mon Jan 06, 2014 7:37 pm

Just tested it on win7, node-webkit preview, works fine.
B
92
S
31
G
24
Posts: 3,191
Reputation: 32,679

Next

Return to Construct 2 General

Who is online

Users browsing this forum: AndreasR, lukewasthefish and 4 guests