GithubHelp home page GithubHelp logo

Linux, Firefox (Nightly 17.0a1 2012-07-17), (old) Logitech Gamepad: different mapping about html5-javascript-gamepad-controller-library HOT 4 OPEN

dertseha avatar dertseha commented on August 20, 2024
Linux, Firefox (Nightly 17.0a1 2012-07-17), (old) Logitech Gamepad: different mapping

from html5-javascript-gamepad-controller-library.

Comments (4)

JakeChampion avatar JakeChampion commented on August 20, 2024

If you could test it in the latest nightly as to see if it was a fault on Mozilla's behalf that would be great. If it isn't, could you send a list of the gamepad specs.

Thanks

from html5-javascript-gamepad-controller-library.

dertseha avatar dertseha commented on August 20, 2024

Thanks for the quick reply. Testing with the newest nightly is a bit tricky.
After wading through various bugzilla comments, gamepad API is currently switched off in the builds for 22 and 23:
https://bugzilla.mozilla.org/show_bug.cgi?id=604039

I'll have to wait for 24 at least, then it's something to be enabled in about:config ("dom.gamepad.enabled") as per
https://bugzilla.mozilla.org/show_bug.cgi?id=851547

I'll try to come back on this when it's available.

from html5-javascript-gamepad-controller-library.

kallaspriit avatar kallaspriit commented on August 20, 2024

Thanks for the input, I guess there is nothing that can be done on the library side at the moment. Let us know if something progresses and pull requests are welcome :)

from html5-javascript-gamepad-controller-library.

dertseha avatar dertseha commented on August 20, 2024

I've had a quick test with Aurora 24, but apparently the flag is still not in it.

Either way, because of my refactoring in #15 regarding the mapping environment, this makes it easy to handle such specific cases. My idea here: extract the vendor and/or device-IDs from the id string. Both WebKit and Firefox put in the USB IDs into the string, which uniquely identify the devices.

We could enhance the environment filter to sport these IDs - perhaps even drop the type determination all together since the vendor ID is exactly this already.

But before going into this route, I'd like you to re-check the existing logitech mappings. There are doubles in there and I'm a bit sceptical whether they are actually correct. I don't believe that two buttons share the same index.

from html5-javascript-gamepad-controller-library.

Related Issues (16)

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.