node-3d / glfw-raub

GLFW for Node.js
https://github.com/node-3d/node-3d
MIT License
57 stars 12 forks source link

Missing 2nd parameter (value) in call to setInputMode window.js #6

Closed chadams77 closed 4 years ago

chadams77 commented 5 years ago

The wrapper function in window.js only passes the mode parameter, needs to pass the value parameter as well

raub commented 5 years ago

Hello! Could you please clarify which specific wrapper function you've mentioned? Would be perfect to have a link to that exact line.

Also it is important whether you use the latest master branch from Github or the package from NPM, because they have diverged a bit lately.

chadams77 commented 5 years ago

@raub https://github.com/node-3d/glfw-raub/blob/master/js/window.js#L345 I'm using the NPM package, but going by that line the issue is still in master

raub commented 5 years ago

Thanks, I'll fix that. For now you may use glfw.setInputMode(window._window, mode, value); as a workaround.

The fix will be available on NPM only after I complete the N-API related modifications of the core packages.

raub commented 4 years ago

New NAPI build is now available on NPM as glfw-raub@4.0.0, the ultimate fix for this issue is a part of the release.