WhiteMagic / JoystickGremlin

A tool for configuring and managing joystick devices.
http://whitemagic.github.io/JoystickGremlin/
GNU General Public License v3.0
306 stars 45 forks source link

Load profile based on device present #502

Open Dawied opened 11 months ago

Dawied commented 11 months ago

Would it be possible to add functionality so that a profile is loaded when a certain usb device is present? Maybe using a plugin?

WhiteMagic commented 11 months ago

That would require changes at the core of Gremlin, something a plugin can't get to. I'm also unclear what purpose such functionality would have as it would have a large number of corner cases which don't have good solutions. So this seems like a feature that would add complexity and confusion for no real benefit.

Dawied commented 11 months ago

It would have the same purpose as the existing mechanism to load a profile when a certain program is started. The purpose would be to have a different configuration based on plugged in controllers. I can see though how this might be confusing. Thanks!

WhiteMagic commented 11 months ago

It's more that I don't see what you would change based on what controllers are connected. If different ones are connected for different games and have different bindings then that's solved via the application profiles. If it would be different profiles that define actions for the particular device only then the current profile already only loads actions for devices present in the system.

On the technical side it's not clear what such a system should do when ambiguous hardware configurations are present, like there are profiles for two independent devices but none for the two at the same time. What should be done there, effectively neither answer is correct because all options are sensible.