Rexeh / joystick-diagrams

Automatically output your tool/game HID configs into printable diagrams with all your binds.
https://joystick-diagrams.com
GNU General Public License v2.0
146 stars 21 forks source link

Feature Request: Add Support for IL2 CoD, IL2 GB #79

Open Rexeh opened 5 months ago

Rexeh commented 5 months ago

Copied from #69

HaddocktheHorrible commented 3 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:

  1. Importer for IL2 GB
  2. Importer for IL2 CLoD

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.

Rexeh commented 3 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:

  1. Importer for IL2 GB
  2. Importer for IL2 CLoD

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.

HaddocktheHorrible commented 3 months ago

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