tablets & jinput

Is it possible to retrieve pressure, tilt data from tablets using JINPUT (2)?

something like: http://www.csl.sony.co.jp/person/rekimoto/java/jwintab/ but I would like a multiplatform solution. You can use the data for some wicked games :slight_smile: like the nintendo DS.
http://www.videoseven.gr/Upload/Products/DS_A_logo_pen.jpg

Hi

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 :slight_smile:

Endolf

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. :slight_smile: 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 ^_^)

Hmm

Thats odd. My touchpad on my laptop has a pressure reading :), although it’s not listed as such.

Endolf

There was a few other inputs listed, including ‘eraser’, ‘invert’ and a POV x/y but I couldn’t get them to register anything except 0.

So using JInput, how would you get to that data, could you give an example? ;D (forgive my laziness)

Using the controller read test, my touchpad mouse shows up as ‘AlpsPS/2 ALPS GlidePoint’ and the slider axis seems to be pressure sensative.

Beyond that, look at the controller read test source files :slight_smile:

Endolf