I would hope these days, that directx exposes information on the tablets. Under linux the event API does it, and jinput sits right on that. So it should ‘just work’.
I have no idea how it would work on the DS, unless someone gets me one and a dev kit, i’ll never find out either
With my tablet the stylus just appears as a regular mouse, I have no idea if it’s possible to get the pressure out of it that way though.
Edit: I’ve just tried it with the jinput demo here: http://www.lwjgl.org/demos.php (TestControllers) and allthough it picks it up as a stylus there doesn’t appear to be any kind of sensitivity/pressure output.
well the DS was just an example of a device which has great games using a pen. To be honest I’m only really interested to get pressure data (and ‘it would be nice’ to be able to get other data such as tilt) from tablets on the 3 PC platforms (windows, mac, linux).
well, the jinput api doc (don’t know about version 2 though) defines a
Controller.Type.TRACKPAD
which is described as “A trackpad, such as a tablet, touchpad, or glidepad; note that this may sometimes be treated as a type of mouse.”
I don’t have a tablet right now (but I’m going to buy one next week) so I cannot test it right now, but I had some ideas I wanted to work on and I went on searching for information on tablets and java. I do believe JInput would benefit from exposing such information, but I don’t know how hard it is to actually implement. (this remark is in case it is not possible, but perhaps it is… I’ll go and poke around JInput 2, perhaps I can find some more clues there ^_^)