MajkStone Posted November 17, 2010 Posted November 17, 2010 I was just wondering if anyone else would be interested in a .Net wrapper for the Logitech G940 C++ SDK. Basically this will let you control the LED buttons on the throttle using .Net applications (C# and VB.Net), and skip the arduous task of writing it all in C++. I've been developing an API wrapper for this purpose for a while now and figured I'd share it with the rest of you guys if anyone was interested. It isn't finished quite yet, but shouldn't take much longer. Eventually I intend to write a few additional components that will connect the API with DCS (both Blackshark and Warthog). This will allow anyone to run the application and have the G940 react to the games. I could use some ideas about how to write a flexible system so anyone can take this and set it up with their own button layouts, etc. Also, I am not sure about the legality of sharing this, as it does use logitech's intellectual property (I.E. their SDK). If anyone knows the laws/rules in this matter please let me know. :) :joystick: -MajkStone [sIGPIC][/sIGPIC]
power5 Posted November 17, 2010 Posted November 17, 2010 I would love to be able to have my LEDs change color when pressed. I use them for the aiming and AP in BS and have to check down to the actual panels a lot to see if they are pressed. I know nothing about writing software languages though so I need a GUI interface like the logitech profiler. I cant believe it has no LED functionality. Something simple. Press the button and it turns red, press again and it turns green. Or option 2 press and it turns off, press and it turns green/red. Or option 3 press and turns green, press and turns red, press and turns off. Simple. Only problem would be syncing with game. [sIGPIC][/sIGPIC] Aaron i7 2600k@4.4ghz, GTX1060-6gb, 16gb DDR3, T16000m, Track IR5 BS2-A10C-UH1-FC3-M2000-F18C-A4E-F14B-BF109
Dimebag1 Posted November 17, 2010 Posted November 17, 2010 I would be interested in this, although I'd use it for flaming cliffs, so if there was an area to fool around with the inputs from .lua's that would be handy. Otherwise nevermind. As far as the legality of using the sdk from logitech, that was exactly what they intended due to their laziness, you just can't sell it for a profit without their permission. good luck anyway. I have a sneaking suspicion they are going to release the ability to manipulate led's with the next logitech gaming software release, however I doubt it will integrate with lua's, and probably won't be very flexible. This is why we need programs like this. If you feel like making a fc2 version that would be great also. :D [sIGPIC][/sIGPIC]
MajkStone Posted November 18, 2010 Author Posted November 18, 2010 Cool :) So moving forward my plan will basically be this: Phase 1 will be to release the API so that other developers can use it in their programs. Phase 2 will be to create a user friendly application that will allow anyone to map the LEDs to the LUA output from the games. I intend to make this as customizable as possible and to work with the outputs from Blackshark and Warhog, and possibly from FC2. -MajkStone [sIGPIC][/sIGPIC]
Crash_Fistfight Posted November 18, 2010 Posted November 18, 2010 (edited) http://forums.eagle.ru/showthread.php?t=45895&highlight=g940+leds This thread may be of interest to y'all. Sounds cool can't wait to see what you come up with. As you can read in the thread there was some issue with using the g940leds program for extended periods but I've never noticed it in missions. Edited November 18, 2010 by Crash_Fistfight
MajkStone Posted November 18, 2010 Author Posted November 18, 2010 Yeah I've used this before, but morg said he lost the source code for it. It was his program that inspired me to do this myself :) -MajkStone [sIGPIC][/sIGPIC]
MajkStone Posted April 3, 2012 Author Posted April 3, 2012 Ok so I realize that it has been over a year and a half since my last post on this, but I got busy and never got around to finishing the wrapper completely. I do have a proof of concept, and any .net programmer should be able to pick it up and do whatever with it. I'll go ahead and share it with everyone. Please note that for this program to work, I had to modify the source for the C++ Logitech SDK Demo (wrapped the functions for .Net), so I have included the DLL in the project as well. Again I am not certain of the legality of this, and all of these files are subject to the Logitech Terms & Conditions, etc etc. Anyways, you'll need VS 2010 (or VB.Net Express 2010), and .Net 4.0 to run it. It is in VB (ugh I know), but should be easy to convert to C# :)Logitech_LCD_Controlpanel.zip -MajkStone [sIGPIC][/sIGPIC]
bobd Posted April 15, 2012 Posted April 15, 2012 Looking forward too this also!! :thumbup: Asus ROG Z390, I9 9900K , 32 GB DDR4, EVGA GTX 2080 Ti , Win10 64, Rift CV1 & S VR
MajkStone Posted April 18, 2012 Author Posted April 18, 2012 For those of you that aren't using 64 bit OS yet (you should upgrade), here is the the 32 bit dll. To convert it do the following: Go into your project configuration and set it back to x86, build it, and then put the new dll into the debug\x86 folder.JoystickSDKDemo_x86.zip -MajkStone [sIGPIC][/sIGPIC]
Recommended Posts