views:

150

answers:

1

I'm writing an XNA application with C#, and I want to be able to control the application with a graphics tablet. All I need to be able to do is track the position and pressure of the pen on the tablet, it would be nice to have some built in gesture recognition but I'm willing to build that myself if needed.

My first attempt at this was to use the vbtablet library. However, when I sent this to a friend it failed to work. It seems that the underlying technology is quite old and not supported by some tablets.

My second attempt is to play with the Microsoft.Ink system. This looks promising, but I know very little about this subject and I'm struggling to make it work properly - for example I can't find how to read the raw tablet input and disable mouse pointer mode on the tablet when using an InkOverlay.

What's the best system to use and what good documentation is there for a beginner in this field?

+1  A: 

Well, if you are open to supporting windows 7 only, you can just something like XNA 4 (currently in CTP via the Windows Phone SDK) which has built-in touch APIs. On windows 7, those APIs are supported by the underlying WM_TOUCH messages that the OS sends.

edit: okay, second attempt at this :-) you could use a tablet, such as the Wacom Bamboo, to send TUIO messages; And then install Multi-Touch Vista to convert those TUIO messages into WM_TOUCH messages.

Joel Martinez
Nice try, but unfortunately the XNA touch interface does not intercept input from a graphics tablet. The graphics tablet is not a multitouch device, so I guess it does not dispatch WM_TOUCH messages
Martin
aww really? that's unfortunate
Joel Martinez
Updated the answer with a secondary suggestion on using a TUIO bridge to convert graphics tablet input into usable WM_TOUCH messages. Good luck! I'm interested in hearing the outcome of your project :-)
Joel Martinez
Right, this looks like it's gonna be complex. Should be fun!
Martin