On Mon, Feb 01, 2010 at 09:27:34AM +0100, Rainer Klier wrote: > i am new to programming and using wacom-tablets under linux. > > i want to use wacom-tablets like the PenStation2 in my own applications. > > i want to use them as signing-tablets, so that somebody can make a > signature with these tablets. > > where should i start? > is there a howto oder wiki or anything like this?
generally, any input device features that go past x/y and buttons need to be accessed through the X Input extension API. Start with XListInputDevices and go from there. There's nothing specific to wacom about this API, it's generic for all devices. There's two versions of XI, I recommend working against XI2 if you're doing Xlib programming anyway. If you're using a toolkit such as GTK or Qt, you need to look into the specific ways how they deal with input devices. You also might want to look at e.g. xournal and check how they do things, since they support on-screen annotation. In this case though, I don't think you need any wacom-specific features. The tablet looks mostly like a mouse on purpose, it gives you coordinates (x, y, pressure, etc.) and you need to then do with those coordinates what you need - be that conversion into a signature, a line, a circle, or a simple button press. Aside from possibly pressure, I don't really see why you'd need something wacom-specific in the code - the app should probably work equally well if someone uses a mouse to sign (the physical difference between the devices shouldn't really matter). Cheers, Peter ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Linuxwacom-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel
