Class : Apprenti
Posts : 2
Registered on : 27/11/2011
Off line
Hello, I'm new to this freetrack software.
I was wondering if there is some example C# code that could show me how to input the x, y position of two leds from a webcam video into a VS2010 C# project.
I assume that I need to have the freetrack software running, correct (this seems obvious)?
I'd rather input this data directly instead of using a rounnd about way through a joystick driver.
Class : Apprenti
Posts : 2
Registered on : 27/11/2011
Off line
I'm not very familiar with Delphi. Kinda want to stay in the VS2010 C# arena. I was hoping that once I run freetrack that there might be a dll that I could use in C# to get at the xy information in the running freetrack program.
Class : Apprenti
Posts : 2
Registered on : 26/11/2011
Off line
Hello,
You can use FreeTrackClient.dll in the your FreeTrack program folder.
There is also a C example in the SDK folder, but it's not up to date with
the latest freetrack version.
To make it work, you have to update the struct and some function names in freetrack_c_interface.cpp. Have a look at the Delphi interface (FTTypes.pas) which is up to date, and you can easily adapt the C example.
If it doesn't work, let me know and I'll send you my code.