Page 1 of 3

gamepad not working with NodeWebkit preview

PostPosted: Sun Jan 05, 2014 10:33 pm
by Burvey
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

Re: gamepad not working with NodeWebkit preview

PostPosted: Mon Jan 06, 2014 12:30 pm
by Ashley
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.

Re: gamepad not working with NodeWebkit preview

PostPosted: Mon Jan 06, 2014 3:24 pm
by Burvey
@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.

Re: gamepad not working with NodeWebkit preview

PostPosted: Mon Jan 06, 2014 3:54 pm
by sqiddster
that's really weird, I've never had that problem. Does it work in exported node-webkit?

Re: gamepad not working with NodeWebkit preview

PostPosted: Mon Jan 06, 2014 4:05 pm
by Burvey
@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

Re: gamepad not working with NodeWebkit preview

PostPosted: Mon Jan 06, 2014 4:23 pm
by 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?

Re: gamepad not working with NodeWebkit preview

PostPosted: Mon Jan 06, 2014 4:26 pm
by Burvey
[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

Re: gamepad not working with NodeWebkit preview

PostPosted: Mon Jan 06, 2014 5:00 pm
by andreyin
@Burvey

Can you post the simplified .capx so people can just download it and test?

Re: gamepad not working with NodeWebkit preview

PostPosted: Mon Jan 06, 2014 6:13 pm
by Burvey
http://www.dennisburch.info/gamepadtest.capx

Try that in windows 8.1 if you can. Gamepad works in Chrome but not with Web-Nodekit.

Re: gamepad not working with NodeWebkit preview

PostPosted: Mon Jan 06, 2014 7:37 pm
by sqiddster
Just tested it on win7, node-webkit preview, works fine.