PatHightree / SpaceNavigator

SpaceNavigator driver for Unity3D
MIT License
173 stars 52 forks source link

Switch Mouse Led function? #12

Closed vml933 closed 2 years ago

vml933 commented 8 years ago

Hello! It would possible add API like switch the SpaceNavigator LED light, developer can remind guest when to use the SpaceNavigator Mouse, Thanks.

PatHightree commented 8 years ago

That would be a nice addition! Unfortunately to the way I get the data from the device does not supply me with a method to set the LED status. If I change the method of communicating to the device, I will try and add this feature.

vml933 commented 8 years ago

Now I use the Plugin and added official c# wapper in SDK Sample( SiApp.SiSetLEDs(_devHdl, 0x01) ) to control the Led in Unity. I think it would be greate if this function can integrate in the Plugin. Thanks.

PatHightree commented 8 years ago

The TestSiApp example uses winforms, which have their own windows message pump. The program receives the device data via windows messages. Unity doesn't give me access to the windows messages it receives. You could hook into that message flow via windows hooks, but that's a windows-only solution and wouldn't work on mac.

PatHightree commented 2 years ago

Thanks @krisrok for the fix Closing issue