emacinnes's picture

Using a Pen/Tablet device with OpenTK

Project:The Open Toolkit library
Version:all versions
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:open
Description

Hi,
I have written a Sketch component for directly drawing on a Plane in 3D, predominantly for doing some motion comics and/or previz quick sketch work, and I've just got a tablet for using a pen to draw with instead of the mouse, which kind of works fine as it just replaces the mouse, but is there a way to detect the pressure using OpenTK, so I can adjust the line width automatically and get something more illustrative in terms of results?

Cheers,

Euan.


Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Mincus's picture

#1

I think this is probably out of the realm of OpenTK (although The Fiddler would have to confirm that).

You can get tablet pressure using the Tablet SDK (http://www.microsoft.com/downloadS/details.aspx?FamilyID=b46d4b83-a821-4...) which you should be able to use alongside OpenTK. Obviously you'd be tied to Windows though.

emacinnes's picture

#2

Ok thanks for the heads up, I'll check out the SDK and see about an abstraction layer that will be windows + linux friendly. As far as I can tell, for simple things like pen pressure, this is already supported by XInput and GTK. MacOSX remains elusive for the time being, but must be there, they have an Ink Services API, which is specific for handwriting recognition, but at least the device is supported, somehow.