Comments (14)
The other option is if node-webkit has support for the gamepad api. That's what I've used and it works somewhat.
from driverstation.js.
Where can I find this Gamepad API? It doesn't seem to be in the node-webkit wiki pages.
from driverstation.js.
http://www.html5rocks.com/en/tutorials/doodles/gamepad/
On Thu, Aug 8, 2013 at 3:06 PM, Brandon Cheng [email protected]:
Where can I find this Gamepad API? It doesn't seem to be in the
node-webkit wiki pages.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/2#issuecomment-22351544
.
from driverstation.js.
Awesome. I just tested that webpage in node-webkit and it supports it. :)
It doesn't seem to work with the Logitech Extreme 3D Pro though.
https://groups.google.com/a/chromium.org/forum/#!topic/chromium-bugs/hiWL8WwqPew
from driverstation.js.
I had some issues with using it correctly at first. The trick is to hold down a face button when it enumerates the joysticks. After that each subsequent enumeration will have it listed. Not sure if that's your issue or not but that's what I struggled with.
On Aug 9, 2013, at 4:58 PM, Brandon Cheng [email protected] wrote:
Awesome. I just tested that webpage in node-webkit and it supports it. :)
It doesn't seem to work with the Logitech Extreme 3D Pro though.
https://groups.google.com/a/chromium.org/forum/#!topic/chromium-bugs/hiWL8WwqPew
—
Reply to this email directly or view it on GitHub.
from driverstation.js.
Was that with this specific joystick model? The Chromium bug says that it's not even picking it up (which was the case in my testing). I was going to just revert back to node-joystick to handle it. If even that doesn't work, node-usb definitely will (but it'll be more archaic obviously).
from driverstation.js.
Regrading the GamePad integration in node-webkit, this is probably the only barrier to using it: nwjs/nw.js#683
Regarding the issues with individual joysticks, I guess the best option is to open a chromium issue for it, or reference an existing one. That's a tricky issue but probably one that will come up regardless of the method used.
from driverstation.js.
@innoying I'm going to agree with that. Rewriting node-sdl is too much for me at the moment (especially with midterms and AP exams soon). My worry is that the Chromium Project maintainers won't take _joystick_s. They're technically different from gamepads.
from driverstation.js.
From the W3C Gamepad documentation (https://dvcs.w3.org/hg/gamepad/raw-file/default/gamepad.html):
"While the primary goal is support for gamepad devices, supporting these two types of analog inputs allows support for other similar devices common to current gaming systems including joysticks, driving wheels, pedals, and accelerometers. As such, the name "gamepad" is exemplary rather than trying to be a generic name for the entire set of devices addressed by this specification."
from driverstation.js.
Ah ok. So we shouldn't have any issues then with getting a patch in.
Edit: I just realized something we need to double check. There's a chromium bug here with a work in progress patch on the Logitech Extreme 3D support. I forgot that the Chromium project and WebKit project split a while ago, so I'm not sure where to go about this.
from driverstation.js.
node-webkit is based on Chromium, not webkit. The name is a bit confusing. It should make it's way in eventually.
from driverstation.js.
That sounds good. :)
from driverstation.js.
I just ran some tests with two joysticks I had on me:
Logitech Attack 3
Logitech Gamepad F310
Two pretty common joysticks for FRC, work perfectly with the Gamepad API.
EDIT: This was tested in Chrome on Mac OS X, not on webkit, and not on other platforms yet.
from driverstation.js.
Closing as invalid due to alternative solution in #13
from driverstation.js.
Related Issues (12)
- Tie together with node-driverstation HOT 1
- Improve elapsed time formatting HOT 2
- Determine when team number is entered HOT 2
- Detect for Robot Code
- Implement Joysticks GUI HOT 1
- Display Error Messages
- Update node-sdl HOT 4
- Include font in binary? HOT 8
- Better Solution for node-gamepad & node-webkit Compatibility HOT 6
- Automatically grab team numbers HOT 2
- Use with FMS HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from driverstation.js.