Code Monkey home page Code Monkey logo

Comments (15)

p-groarke avatar p-groarke commented on July 24, 2024 1

I've converted the GUIDs on my fork. I added it as an option in check.py. Testing is welcome :) Cheers.

from sdl_gamecontrollerdb.

slouken avatar slouken commented on July 24, 2024

I added code to support older mapping GUIDs, so this isn't urgent, but FYI.
https://hg.libsdl.org/SDL/rev/20855a38e048

from sdl_gamecontrollerdb.

gabomdq avatar gabomdq commented on July 24, 2024

Hey Sam, how do you think we should handle this change here? It's possible now that if people generate mappings with SDL 2.0.5, they won't work on previous versions...but they will work the other way around...should I only accept old style GUIDs? Split the db in two separate files for pre and post 2.0.5?

from sdl_gamecontrollerdb.

slouken avatar slouken commented on July 24, 2024

Maybe split the file? Or remap the guids to the older format before you accept them?

from sdl_gamecontrollerdb.

ticky avatar ticky commented on July 24, 2024

Oh, is this why Steam Big Picture’s mappings ended up with different UUIDs to when I used controllermap? Good to know!

Is there a way to convert mappings? I presume the GUID discards enough information that it’s impossible…

from sdl_gamecontrollerdb.

ticky avatar ticky commented on July 24, 2024

Oh huh never mind, just read your patch, haha!

Maybe SDL_GameControllerDB should normalise to one or both, yeah!

from sdl_gamecontrollerdb.

ed-mw avatar ed-mw commented on July 24, 2024

So evidently, v2.0.5 doesn't actually support the older mappings?

from sdl_gamecontrollerdb.

ticky avatar ticky commented on July 24, 2024

SDL v2.0.5 is backwards-compatible with the old mapping types, as mentioned in this comment.

from sdl_gamecontrollerdb.

ed-mw avatar ed-mw commented on July 24, 2024

v2.0.5 was released 6 months ago... that "fix" was made 4 months ago. :-(

from sdl_gamecontrollerdb.

ticky avatar ticky commented on July 24, 2024

Ah, my mistake! Yeah, that’s awkward.

from sdl_gamecontrollerdb.

ed-mw avatar ed-mw commented on July 24, 2024

The fix seems doable right in my game code on Windows if I read the file and convert the GUIDs before adding them to SDL... then I can use them with the v2.0.5 released version of SDL. Or maybe it'll be easier to just convert the file in advance.

I notice that the last 12 digits of the GUIDs aren't typically 000000000000 on Linux... according to the source code, it appears that the middle 4 digits of those 12 are a "version" number that is available when the device is queried on Linux. That was causing me some confusion here as well ("...standardized to the Linux format...") 8-|

I may have a few devices to submit as well... I have an original "Wingman Rumblepad" and a "Firestorm Wireless" that I don't see listed... maybe a few others as well... not that anyone actually has these devices besides me... ;-)

from sdl_gamecontrollerdb.

ticky avatar ticky commented on July 24, 2024

Conversion might be a good idea - it’d actually be really quite cool if we could somehow convert the existing file here to uniformly have 2.0.5+’s format, and also have a canonical 2.0.4-and-below version! I’m sure a PR with such a solution would be welcomed.

from sdl_gamecontrollerdb.

ed-mw avatar ed-mw commented on July 24, 2024

Probably the thing to do is to make a v2.0.4 branch and then update the file to use the v2.0.5 format going forward? Updates and additions can be applied to both the old v2.0.4 branch and head. That way, anyone running the latest released version of SDL (v2.0.5) will get mappings that work, and anyone on an older version of SDL can still get the branched copy. I don't know git, so I don't know how to accomplish this, but I can supply the reformatted version of the existing Windows mappings (someone else will need to fix the Mac OS X mappings).

Still, for some reason, all of the Windows mappings (46) are loading into SDL v2.0.5. Only 31 load successfully. Some of those are probably the duplicates reported in the other thread, but the rest are maybe botched somehow? Do you have to include every action for the map to load correctly? I notice some actions are missing on some of the maps, and some of the actions look like "guide:" (no actual mapped button or other control). What is the proper way?

from sdl_gamecontrollerdb.

ed-mw avatar ed-mw commented on July 24, 2024

As it turns out, of the Windows mappings, 15 are duplicates, so that leaves 31 distinct GUIDs out of 46 entries... so that explains that.

from sdl_gamecontrollerdb.

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

Fork has been merged, both versions are offered now.

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.