I can build and run the sample .NET application; however, when I add the code to the mainform of an existing C# graphics application, my SpaceNavigator will light up when the program starts, but the keyboard and sensor events are never triggered when using the SpaceNavigator.
What constraints exist in using TDxInput? I have not discovered any documentation on TDxInput for using it in a .NET application.
I am also experiencing the same problems with an existing managed application. If I build and run the C# sample it will run fine and display events from the device.
But when I use the same technique within my existing C# application it never receive the events. The device connects and disconnects, IsConnected returns true, but no events are sent.
I also attempted manually polling for the values from the sensors within a timer event. Again, no value changes (all zero).
I have the following versions of the software installed:
I read elsewhere that if your application closes its first Form, then your TDxInput connection will not function. I encountered this with a Splash Window that is closed shortly after my Forms application is started. My work-around was to hide my Splash Window instead of closing. I believe this is a bug that will be fixed in a later release.
david25520 wrote:I read elsewhere that if your application closes its first Form, then your TDxInput connection will not function.
This app also has a splash screen so I commented out the creation/display/closing of the window and tested again. Still no events.
But the issue of closing the first Form is interesting. Since I can instantiate the TDxInput instance, connect to it, but not receive events makes me wonder how the instance is polling the device. Does it require a message loop to poll the device and if so, which message loop is doing the polling?
[EDIT] I found the topic about the Form close issue:
the download possibility from ftp-us.3dconnexion.com is available again. Sorry for the problems; we had a transfer and some settings still had to be adjusted. Works now.
TDxInput has been deprecated. Please use the Raw Input samples in the SDK that can be downloaded from our web site. Raw Input, from Microsoft, incorporates into a typical Windows program and handles multiple devices very well.