DriverStation.js icon indicating copy to clipboard operation
DriverStation.js copied to clipboard

Better Solution for node-gamepad & node-webkit Compatibility

Open gluxon opened this issue 9 years ago • 6 comments

As outlined in the 3rd party modules with C/C++ addons section of the node-webkit wiki, native modules with node-webkit run with a different ABI (application binary interface) than standard node. @gixxy came up with a nice solution in pull request #13, but it would be nice to automate this. (Say with Grunt)

gluxon avatar Jan 04 '15 06:01 gluxon

Agreed 100%. The amount of manual intervention required to get node-gamepad compiled with node-pre-gyp was ridiculous, and is certainly not automated. I know of Grunt.js but I will definitely have to look into using it. I did make sure to put all my documentation on the task in the README.

ExploitSage avatar Jan 04 '15 06:01 ExploitSage

The documentation you added was extremely helpful, thank you for that. I mentioned Grunt as a possible solution, not sure if it's the best yet.

gluxon avatar Jan 04 '15 06:01 gluxon

Another thing I have since noticed is that Node-webkit v0.11 is based on Chromium 38, which supports the Gamepad API. It is a potential integrated solution considering the node-gamepad library is not currently compatible with Node-Webkit v0.11

ExploitSage avatar Jan 08 '15 03:01 ExploitSage

The reason I didn't love the Gamepad API was because of lack of support for the Logitech Extreme 3D Pro. It appears that issue has been fixed on Windows now.

I'm tempted to a create a gamepad-api branch and start the refactor there given the node-gamepad headaches. OS X and Linux may need their own solutions until Chrome finishes their implementation though. @gixxy, what do you think?

gluxon avatar Jan 08 '15 03:01 gluxon

I figure it is at least worth trying out. Branch and try it. I am less available now due to other commitments than I was the last 4 weeks, (between college, work(s), and mentoring a team) but I will help when and where I can. My code should be fairly clean and understandable. I will always respond to any questions you need answered though.

Even if the gamepad-api isn't quite up to snuff cross-platform wise yet, if we have it generally ported, and ready to go when it is, we will be a step ahead.

ExploitSage avatar Jan 08 '15 03:01 ExploitSage

bumpity bump

bb010g avatar Apr 25 '15 19:04 bb010g