AndersMalmgren / FreePIE

Programmable Input Emulator
644 stars 144 forks source link

[Suggestion] Logitech G API #212

Open viperfan7 opened 2 years ago

viperfan7 commented 2 years ago

Perhaps we could get a Logitech API, mainly to access the G keys directly, but also to maybe implement the logitech LCD screen found on some older devices, and things like that

Been trying to code one myself but I'm way out of practice, but it seems pretty basic to implement, even has documentation for how to get it running in C#

viperfan7 commented 2 years ago

EDIT:

Saw that you only maintain the repo now instead of develop for it, I'm working on getting it working still, but there may be an issue in that it requires 3rd party, non opensource libraries

cyberluke commented 2 years ago

Just send pull request. It does not mean we cannot help, in the end it is community developed effort.

I plan to integrate original Logitech SDK 1.0, for now only part with G940 flight stick / rudder buttons (they have RGB).

Yes, I read the SDK license as well, haha!

What do you think about it? It's just quite normal license. If you are game developer, you need to have it and do it as well, right? I'm sure a lot of games have it included and compiled.

The worst case scenario for us, if mantainer does not want to include it, would be: 1) create our class with interface that would call Logitech SDK methods - this one would be compiled as FreePIE plugin (preferably DLL) 2) actual user would download Logitech SDK (again just DLL) 3) your interface would interact with Logitech DLL, which user would copy to FreePIE directory, you would just check for its presense and console write warning 4) profit