GithubHelp home page GithubHelp logo

Comments (3)

JakeChampion avatar JakeChampion commented on August 20, 2024

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.

dertseha avatar dertseha commented on August 20, 2024

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.

daedeloth avatar daedeloth commented on August 20, 2024

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)

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.