Comments (3)
You are correct in that assumption, this library is OS agnostic in nature
On Sun, Dec 22, 2013 at 9:08 PM, daedeloth [email protected] wrote:
Hi,
Awesome project! Saves me a lot of time.
I've got it working on windows, but the mapping in chrome / linux with my
xbox 360 controller is wrong.I've been looking at the code for a way to override the mapping for linux,
but am I right in saying that currently there is no filter for platform?
mac / windows / linux?Many thanks,
Thijs—
Reply to this email directly or view it on GitHubhttps://github.com//issues/17
.
from html5-javascript-gamepad-controller-library.
Currently the OS is not taken into account. But the code to determine the gamepad mapping could easily support it:
Gamepad.prototype._resolveMapping() uses an env
object which could have an additional os
member for example (resolving the value would be a dedicated topic).
A gamepad mapping could then also specify an os
member, which acts as an additional filter matching only if its value is also found in that reference env
.
But I so far have not found out whether the unification of button layouts for the same controller across OS and browsers must happen in JS-user land, in the browser or possibly in the OS.
from html5-javascript-gamepad-controller-library.
From what I understand, it is meant to be somewhat generalized.
But any implementation of the gamepad api I've seen had my mapping mixed up.
I also don't think I have a way to fix it in ubuntu.
It's also hard to find people with similar issues, since not that many people have ubuntu & an xbox controller laying around.
I think I'll have a go at that added os member.
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
- 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
- Linux, Firefox (Nightly 17.0a1 2012-07-17), (old) Logitech Gamepad: different mapping HOT 4
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.