Any way to control LED on/off?

Post questions, comments and feedback to our 3Dconnexion Windows Development Team.

Moderator: Moderators

Post Reply
nlewis
Posts: 5
Joined: Wed Jan 05, 2022 9:20 pm

Any way to control LED on/off?

Post by nlewis »

I noticed this topic in the MacOS developer's forum: https://forum.3dconnexion.com/viewtopic.php?t=19372

However, the Windows SDK looks completely different, with no references to ConnexionClientControl. Is there an equivalent way to turn on/off the LED in the Windows SDK?
jwick
Moderator
Moderator
Posts: 3331
Joined: Wed Dec 20, 2006 2:25 pm
Location: USA
Contact:

Re: Any way to control LED on/off?

Post by jwick »

It depends on which SDK you are using.
There is a SiSetLEDs function in the legacy SDK.
I don't recall if we exported that in the latest SDK.
In general, we leave the LED setting as a user preference.
nlewis
Posts: 5
Joined: Wed Jan 05, 2022 9:20 pm

Re: Any way to control LED on/off?

Post by nlewis »

Well, the LED on/off isn't available as a user preference in the latest Windows driver and I'm a software developer, so I'm looking for another way to turn it on/off. Where can I find the legacy SDK?
nlewis
Posts: 5
Joined: Wed Jan 05, 2022 9:20 pm

Re: Any way to control LED on/off?

Post by nlewis »

Thanks for the pointer, I found a wrapper for SiSetLEDs here: https://github.com/DMXControl/3Dconnexion-driver

which allowed me to write this stupid simple console app:

<code>
static void Main(string[] args)
{
using (var device = new _3DconnexionDriver._3DconnexionDevice("ledOnOff"))
{
IntPtr handle = Process.GetCurrentProcess().MainWindowHandle;
device.InitDevice(handle);
device.LEDs = 0;
}

}
</code>
Post Reply