andrew / node-xbox-controller

:video_game: [UNMAINTAINED] Interface for Xbox 360 game controller into Node.js
http://libraries.io/npm/xbox-controller
MIT License
270 stars 49 forks source link

No windows support, is it possible? #14

Closed EricSmekens closed 10 years ago

EricSmekens commented 10 years ago

No support for windows I guess. Is this something you aim for, or do you know if this is technically unpossible? If it's possible, I can look into it if I have some spare time.

andrew commented 10 years ago

It should be possible, but I don't have a windows machine to test it on, what kind of error are you getting?

EricSmekens commented 10 years ago

npm ERR! notsup Unsupported npm ERR! notsup Not compatible with your operating system or architecture: xbox- controller@0.4.0 npm ERR! notsup Valid OS: darwin,linux npm ERR! notsup Valid Arch: any npm ERR! notsup Actual OS: win32 npm ERR! notsup Actual Arch: x64

npm ERR! System Windows_NT 6.2.9200 npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nod ejs\node_modules\npm\bin\npm-cli.js" "install" "xbox-controller" npm ERR! cwd C:\Users\Eric\Documents\GitHub\XController npm ERR! node -v v0.10.24 npm ERR! npm -v 1.3.21 npm ERR! code EBADPLATFORM npm ERR! not ok code 0

package.json says something about darwin, linux, going to test something :)

EDIT: Added win32 to os, but node-hid uses a sh command which windows doesn't support?

Testing with node-gyp now, maybe I can tweak something for that so npm install works with that.

andrew commented 10 years ago

I think the version of node-hid needs bumping up to 0.3.1, which should fix the windows install errors.

I'd happily merge a pull request to add win32 to the os options if you can verify that it works with the latest node-hid.

EricSmekens commented 10 years ago

@andrew I tried to install node-hid on it's own on my machine, but I can't get it to work. Neither on windows 7 or 8. I use node-gyp to configure/build it, but I seem to get an error:

I will ask on node-hid how to resolve this, when I know, I will try to open a pull request to support windows! :)

See: https://github.com/node-hid/node-hid/issues/56

andrew commented 10 years ago

15 upgraded node-hid and was tested on windows 8 by @ianwitherow, this might help fix your issue @EricSmekens

EricSmekens commented 10 years ago

Too bad, can't get it too work. Still same issue: node-hid/node-hid#56

Seems something with my system, I think. Will ask if ian did some specific other things.

ianwitherow commented 10 years ago

@EricSmekens, not sure what's wrong. I took out my laptop with a fresh install of Windows 7 x64, and I was able to build node-hid successfully after installing:

EricSmekens commented 10 years ago

Okay, I have Visual Studio 2012 Express for Desktop. Going to do a fresh install of Windows 8 soon, as I awas already planning that, will let it know here when I do and still find problems.

andrew commented 10 years ago

Aside from some Visual studio/python/node-gyp issues, this is fixed by @neocotic and released in https://github.com/andrew/node-xbox-controller/releases/tag/v0.4.2

EricSmekens commented 10 years ago

Confirmed. Installed git with linux tools and Visual Studio 2013 for Desktop and Windows SDK 8.

Working now! :) +1