Giter Site home page Giter Site logo

Comments (4)

offalynne avatar offalynne commented on July 20, 2024 1

It’s working as intended. The format goal of this DB (and SDL2) is based on normalising the physical location of buttons on the controller. B on an XInput controller is the right face button, even though it is marked as A on Nintendo controllers. Physical button location/equivelance is given precedence over the labels. For example, on Sony controllers, the Circle button would be marked in the DB as B. Getting the device labels to match is not the goal of this repo; doing so requires an additional step (that’s out of scope for this DB) of identifying the controller type and how it’s buttons are labelled. I can’t speak to Jamepad as I don’t know what it purports to accomplish. See the Readme for more examples.

from sdl_gamecontrollerdb.

offalynne avatar offalynne commented on July 20, 2024

this is actually working as intended. the inputs are mapped based on button position (relative to an Xbox360 controller), so a/b and x/y are swapped on the nintendo controller layout.

from sdl_gamecontrollerdb.

p-groarke avatar p-groarke commented on July 20, 2024

Yes it's working as intended. The database matches the button position, not the name. It gets confusing for the nintendo controllers as they are named identically to the xbox controller.

from sdl_gamecontrollerdb.

javmarina avatar javmarina commented on July 20, 2024

Why then when I press A it is recognized as B? I don't understand if it's a problem with the controller this library or Jamepad library.

from sdl_gamecontrollerdb.

Related Issues (20)

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.