Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (499)
Games in Android Showcase (118)
games submitted by our members
Games in WIP (567)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  tablets & jinput  (Read 2180 times)
0 Members and 1 Guest are viewing this topic.
Offline tusaki

Junior Member


Medals: 1


In a mad world only the mad are sane.


« Posted 2006-04-09 10:11:50 »

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 Smiley like the nintendo DS. 
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #1 - Posted 2006-04-09 13:33:06 »

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 Smiley

Endolf

Offline Orangy Tang

JGO Kernel


Medals: 56
Projects: 11


Monkey for a head


« Reply #2 - Posted 2006-04-09 14:02:48 »

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.

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline tusaki

Junior Member


Medals: 1


In a mad world only the mad are sane.


« Reply #3 - Posted 2006-04-09 14:20:36 »

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 Smiley

Endolf
well the DS was just an example of a device which has great games using a pen. Smiley 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).

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.

well, the jinput api doc (don’t know about version 2 though) defines a
1  
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 ^_^)
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #4 - Posted 2006-04-09 14:21:20 »

Hmm

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

Endolf

Offline Orangy Tang

JGO Kernel


Medals: 56
Projects: 11


Monkey for a head


« Reply #5 - Posted 2006-04-09 14:29:19 »

Hmm

Thats odd. My touchpad on my laptop has a pressure reading Smiley, 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.

[ TriangularPixels.com - Play Growth Spurt, Rescue Squad and Snowman Village ] [ Rebirth - game resource library ]
Offline tusaki

Junior Member


Medals: 1


In a mad world only the mad are sane.


« Reply #6 - Posted 2006-04-09 14:30:10 »

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

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

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #7 - Posted 2006-04-09 14:47:32 »

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 Smiley

Endolf

Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

Pippogeek (39 views)
2014-09-24 16:13:29

Pippogeek (30 views)
2014-09-24 16:12:22

Pippogeek (19 views)
2014-09-24 16:12:06

Grunnt (44 views)
2014-09-23 14:38:19

radar3301 (25 views)
2014-09-21 23:33:17

BurntPizza (62 views)
2014-09-21 02:42:18

BurntPizza (32 views)
2014-09-21 01:30:30

moogie (39 views)
2014-09-21 00:26:15

UprightPath (50 views)
2014-09-20 20:14:06

BurntPizza (54 views)
2014-09-19 03:14:18
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!