GithubHelp home page GithubHelp logo

Comments (14)

bored-engineer avatar bored-engineer commented on June 9, 2024

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.

gluxon avatar gluxon commented on June 9, 2024

Where can I find this Gamepad API? It doesn't seem to be in the node-webkit wiki pages.

from driverstation.js.

bored-engineer avatar bored-engineer commented on June 9, 2024

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.

gluxon avatar gluxon commented on June 9, 2024

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.

bored-engineer avatar bored-engineer commented on June 9, 2024

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.

gluxon avatar gluxon commented on June 9, 2024

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.

bored-engineer avatar bored-engineer commented on June 9, 2024

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.

gluxon avatar gluxon commented on June 9, 2024

@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.

bored-engineer avatar bored-engineer commented on June 9, 2024

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.

gluxon avatar gluxon commented on June 9, 2024

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.

bored-engineer avatar bored-engineer commented on June 9, 2024

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.

gluxon avatar gluxon commented on June 9, 2024

That sounds good. :)

from driverstation.js.

bored-engineer avatar bored-engineer commented on June 9, 2024

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.

gluxon avatar gluxon commented on June 9, 2024

Closing as invalid due to alternative solution in #13

from driverstation.js.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.