Giter Site home page Giter Site logo

Comments (10)

flibitijibibo avatar flibitijibibo commented on July 20, 2024

If you add '~' to the binding number it should invert it. '~a0' would, for example, flip axis 0.

from sdl_gamecontrollerdb.

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

Yes, it works with SDL 2.0.6 an onwards. There are some examples in the db.

from sdl_gamecontrollerdb.

rfht avatar rfht commented on July 20, 2024

I'm on SDL 2.0.5 (hopefully will eventually update, but for now stuck with this). On my system (yes, OpenBSD) the Y axes of an Xbox360 gamepad are wrong - they need to be inverted. I tried the tilde ~ to the binding number, but that didn't work. Any ideas if there's an equivalent for SDL 2.0.5?

from sdl_gamecontrollerdb.

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

There is no equivalent on SDL 2.0.5. The only option is to upgrade, sorry.

from sdl_gamecontrollerdb.

rfht avatar rfht commented on July 20, 2024

Thanks for letting me know. Prepared upgrade on our platform to 2.0.7 which was unproblematic and long overdue anyway...

from sdl_gamecontrollerdb.

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

:D

from sdl_gamecontrollerdb.

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

Note the notation for inversion is a0~ and not ~a0.

from sdl_gamecontrollerdb.

rfht avatar rfht commented on July 20, 2024

yes, I saw that in the file. Works. Thanks!

from sdl_gamecontrollerdb.

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

If you would like to submit an openbsd mapping, I would gladly add the platform and accept the pr. You can use platform:OpenBSD, for the platform field. I've refactored the script so it is easy to add platforms :)

from sdl_gamecontrollerdb.

rfht avatar rfht commented on July 20, 2024

Thanks, that's good to know, but our implementation isn't there yet... The current workaround which only just enabled any form of gamecontroller API support on OpenBSD is to bypass where the check for haptic feedback fails and default to a XBox360 controller device. This part of the SDL2 code appears to be a failsafe for Linux platforms.

As a result, I can't customize the mapping with gamecontrollerdb.txt or SDL_GAMECONTROLLERCONFIG at the moment. Just tested this again. Will need to review the SDL2 code for a future update before we can make use of this.

(The a0~ worked when compiling with a hardcoded mapping that includes this - this is how I know, in case you were wondering...)

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.