Using TDxInput.
Moderator: Moderators
Using TDxInput.
Does anyone have a basic example of using TDxInput in a .NET application ?
I'm using C#/et.all. (VS2005) on Vista and just need a push .
Thanks.
I'm using C#/et.all. (VS2005) on Vista and just need a push .
Thanks.
Edited 14-JAN-2009:
Removed the code that was here. It was misleading. We have a better example now.
There is a good C# example on our ftp site:
ftp:/ *** ***
login: ***
password: ***
subdir: TDxInput
file: csmonitor.zip
Moderator Edit: the sample code is no longer available from the FTP service. Please contact 3Dconnexion API Support if you need further assistance.
Removed the code that was here. It was misleading. We have a better example now.
There is a good C# example on our ftp site:
ftp:/ *** ***
login: ***
password: ***
subdir: TDxInput
file: csmonitor.zip
Moderator Edit: the sample code is no longer available from the FTP service. Please contact 3Dconnexion API Support if you need further assistance.
Last edited by jwick on Wed Jan 14, 2009 2:00 pm, edited 1 time in total.
-
- Posts: 2
- Joined: Sat May 12, 2007 4:58 pm
Problem adding example .NET code to existing application
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.
What constraints exist in using TDxInput? I have not discovered any documentation on TDxInput for using it in a .NET application.
No events in existing C# 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:
release 3.3.6
driver 6.3.3
firmware 3.18
And a SpaceNavigator device.
Any help appreciated.
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:
release 3.3.6
driver 6.3.3
firmware 3.18
And a SpaceNavigator device.
Any help appreciated.
-
- Posts: 2
- Joined: Sat May 12, 2007 4:58 pm
Closing a top most form
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.
Re: Closing a top most form
This app also has a splash screen so I commented out the creation/display/closing of the window and tested again. Still no events.david25520 wrote:I read elsewhere that if your application closes its first Form, then your TDxInput connection will not function.
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:
viewtopic.php?t=1013&start=0&postdays=0&postorder=asc
This sounds like it's the problem. I am going to try the previous software release to see if it corrects the problem.
Re: Closing a top most form
Let us know what comes up. We're following this.HansK wrote:I am going to try the previous software release to see if it corrects the problem.
Nuno Gomes
Does that site (or some newer replacement) still exist? The page doesn't load. I would really like a C# example for connecting to a SpaceNavigator.There is a good C# example on our ftp site:
ftp:/ *** ***
login: ***
password: ***
subdir: TDxInput
file: csmonitor.zip
If there is another post that gives a C# example, please direct me to it.
Thanks!
Moderator Edit: the sample code is no longer available from the FTP service. Please contact 3Dconnexion API Support if you need further assistance.
ftp-us available again
Hi jdv26c,
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.
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.
Uta
3Dconnexion
3Dconnexion
I've posted a C# (WPF) example that uses Raw Input at:
ftp:/ *** ***
user: ***
password: ***
subdir: C#
filename: 3DMouse_WPF.zip
Moderator Edit: the sample code is no longer available from the FTP service. Please contact 3Dconnexion API Support if you need further assistance.
ftp:/ *** ***
user: ***
password: ***
subdir: C#
filename: 3DMouse_WPF.zip
Moderator Edit: the sample code is no longer available from the FTP service. Please contact 3Dconnexion API Support if you need further assistance.
Re: Using TDxInput.
Also I have some problem with the ftp site,
Does that site still exist?
thanks
Fabio
Does that site still exist?
thanks
Fabio
Re: Using TDxInput.
Is this still available somewhere?
I'm quite interested in a c# example.
I'm quite interested in a c# example.