Comments (4)
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.
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.
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.
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)
- Firefox changes event names for gamepad API (no prefix, all lowercase) HOT 2
- Contribution guidelines & scripts? HOT 5
- Standardize button names reported by library HOT 5
- Linux & xbox controller HOT 3
- Use objects instead of arrays for buttons/axes mappings
- Document the button names
- Demo not working in Chrome HOT 1
- Consider firing synthetic events
- Use unprefixed Gamepad API if available for WebKit
- mapping of buttons HOT 1
- Not work in last Chrome (73.0.3683.86) HOT 3
- gamepad.bind(Gamepad.Event.BUTTON_UP) not working HOT 3
- getGamepad will now require Secure Context HOT 1
- controller connects twice if connected with both bluetooth and wire HOT 10
- Library does not support XBOX 360 Controller Under Linux HOT 7
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 html5-javascript-gamepad-controller-library.