Sorry for the delay. I came down with a cold this weekend which slowed my progress a great deal. I have completed a preliminary release of my managed SDK for the encoder. I tried to make the interface as simple as I can by providing events for all of the important state changes and allowing easy setup of "scenes" for the device.
Also, I have tried to greatly simplify the process of creating and loading "scenes" on to the device. With the API provided you can load pr1 files saved by the Immersion Studio application as well as create some basic effects using what I call the BalanceFaderScene and the SimpleBoundRangeScene.
These two should provide a great deal of functionality without ever having to learn the native message structure of the encoder. To demonstrate this I will release a more advanced demo program as soon as I get a chance, for now, take a look at the simple demo I included and use your imagination
For those who love to hack things together yourselves you can still do that. All of the register addresses and other key values are available as named enumerations taking all of he guess work out. You can leverage as much or as little of the "advanced" features as you like.
The three configurable scene classes I provide all implement the ITouchSenseScene interface, so you can create your own if you so desire. It's pretty simple.
You can download it here and give it a try. Please, take a look at the documentation first. The critical class is the TouchSenseEncoder class. That's where all the magic happens. Aside from that, play around with the demo and let me know what you think.
http://www.mr2-power.com/downloads/TouchSenseSDK.zip
Here's what the zip contains:
- A signed release build of the DLL you need to get going.
- A CHM file documenting the entire class structure
- Source code for a very simple demo app that should give a good indication of how the API works.
Notes:
- You must develop using the .NET Framework 2.0 (any managed language should do)
- The API only communicates with the device via the COM Port interface.
- Please keep in mind this is a first pass at this hacked up over the course of a couple of days. Please report any bugs to me directly, not on here (no need to clutter the thread)
Any feedback on the API would be very helpful.
Enjoy!
-Matt Armstrong