Open Rexeh opened 5 months ago
Hi! I'm just scratching the surface of the code structure for joystick diagrams, but I wanted to offer up two scripts that could be adapted for this issue:
Amongst other things, respectively, they parse GB .actions
files and CLoD .ini
config files for devices, button/axis id's, bindings, and descriptions - which all get returned as a dict. They're for my fork of joystick gremlin, so there's some extra logic around it that would have to be re-worked... but the core logic for how to parse each line of those config files should be reusable here.
Hi! I'm just scratching the surface of the code structure for joystick diagrams, but I wanted to offer up two scripts that could be adapted for this issue:
Amongst other things, respectively, they parse GB
.actions
files and CLoD.ini
config files for devices, button/axis id's, bindings, and descriptions - which all get returned as a dict. They're for my fork of joystick gremlin, so there's some extra logic around it that would have to be re-worked... but the core logic for how to parse each line of those config files should be reusable here.
Hey @HaddocktheHorrible,
Thanks for posting these up, they look pretty much there for being able to use with Joystick Diagrams. As of version 2.0 I opened it up to a plugin system so if you're up for it you could convert these to plugins without much effort.
The only mechanism you really need to adapt it to is the input library
https://github.com/Rexeh/joystick-diagrams/blob/master/docs/plugins.md https://github.com/Rexeh/joystick-diagrams/blob/master/docs/profiles.md
I've been waiting for the first plugin from the community before adding in the install capability, and very happy to work with you if you want to take this on! Might be worth hopping into Discord and can cover questions there, and can update documentation alongside questions you have.
Thanks! I'll see if I can take a look at the plugin system when I can - and probably have follow-on questions for the Discord. Cheers
Copied from #69