Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (512)
Games in Android Showcase (119)
games submitted by our members
Games in WIP (576)
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  
  another (very) basic test app  (Read 2259 times)
0 Members and 1 Guest are viewing this topic.
Offline JuddMan

Senior Duke


Medals: 1


Your Ad Here


« Posted 2003-09-23 21:38:55 »

this app basically displays lines for all the analog Axes on all the plugged in controllers, and a box that moves with the mouse input.

http://www.adam.com.au/kellyjones/java/AnalogDisp.jar

The way the mouse input is handled seems odd. can anyone with a mac or linux check this out? the box should move just like the mouse cursor. maybe slower or faster, but not with a capped speed.

edit: fixed this:
[size=1]
I still havent worked out how to have a JAR file work with the jinput jars, there's a BAT file in the zip that has the command you need to use to run it..

i am assuming that the jinput files are just in the same directory as this JAR here, but i'd be interested to know from those of you who have installed it correctly into your JRE whether it works without them there.[/size]
Offline TheBohemian

Junior Duke




Java will rule them all!


« Reply #1 - Posted 2003-09-23 22:46:08 »

Works for me by typing "java -jar AnalogDisp.jar". I have installed jinput and the plugins as extension (WinXP).

You can add the line
"Class-Path: jinput.jar jutils.jar"
to your jar manifest. After doing this a separate batch files or zipping is not needed. This even works for people who have installed jinput as an extension (availability of the files besides your application is not needed for them).

PS: The classpath doesn't need the . (dot).

cya

TheBohemian

---------------------------------------
my favorite OS: http://jnode.sf.net
Java 1.5 -> 1.4 converter: http://retroweaver.sf.net
Offline TheBohemian

Junior Duke




Java will rule them all!


« Reply #2 - Posted 2003-09-23 22:52:43 »

Regarding the mouse problem:
In this thread it is mentioned that the current implementation fo the mouse movement differs from the Mac and Linux implementation in the detail that DInput only returns normalized values.

http://www.JavaGaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jinput;action=display;num=1059640919

cya

TheBohemian

---------------------------------------
my favorite OS: http://jnode.sf.net
Java 1.5 -> 1.4 converter: http://retroweaver.sf.net
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline JuddMan

Senior Duke


Medals: 1


Your Ad Here


« Reply #3 - Posted 2003-09-23 23:10:33 »

thanks for that, i thought i had tried that before but i must have not quite got it right cause when i added the line exactly as you said, it worked.

edited original post's link to the new file. it's now a single jar, added source, though it's rough.
Offline swpalmer

JGO Coder


Exp: 12 years


Where's the Kaboom?


« Reply #4 - Posted 2003-09-24 15:24:37 »

Mac OS X 10.2.8  Java 1.4.1_01
It doesn't not show all axis of all controllers.
It only shows the trackpad of my powerbook, even though I have a USB mouse plugged in as well.

Movement seems to be working, but it is choppy  (and of course the acceleration doesn't match the mouse pointer, so the box appears to be moving slow - normal I think).  FPS fluctuates between 30 and 50.  Goes as low as 7 FPS if I make the window bigger!!

Offline gregorypierce

Senior Duke




I come upon thee like the blue screen of death....


« Reply #5 - Posted 2003-09-24 16:56:08 »

Controllers themselves are only detected currently in the OSX port, they are not yet realized.

http://www.gregorypierce.com

She builds, she builds oh man
When she links, she links I go crazy
Cause she looks like good code but she's really a hack
I think I'll run upstairs and grab a snack!
Offline swpalmer

JGO Coder


Exp: 12 years


Where's the Kaboom?


« Reply #6 - Posted 2003-09-24 21:20:30 »

I thought the Mouse support was complete for OSX?

I noticed that this app randomly chooses between finding the trackpad or the USB mouse when I start it up.

Offline JuddMan

Senior Duke


Medals: 1


Your Ad Here


« Reply #7 - Posted 2003-09-26 19:22:42 »

it was only supposed to show axis of controllers of type"Stick"

but i've just uploaded a modified one, which is supposed to show all analog axes.

here:
http://www.adam.com.au/kellyjones/java/AnalogDispAll.jar

edit: mouse polling seems to be broken. dunno what caused that.
it's not really in my interests to use jinput for any kind of mouse or keyboard input, AWT works fine for that, but for controllers, JInput works great.
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.

Longarmx (49 views)
2014-10-17 03:59:02

Norakomi (39 views)
2014-10-16 15:22:06

Norakomi (31 views)
2014-10-16 15:20:20

lcass (35 views)
2014-10-15 16:18:58

TehJavaDev (65 views)
2014-10-14 00:39:48

TehJavaDev (65 views)
2014-10-14 00:35:47

TehJavaDev (55 views)
2014-10-14 00:32:37

BurntPizza (72 views)
2014-10-11 23:24:42

BurntPizza (43 views)
2014-10-11 23:10:45

BurntPizza (84 views)
2014-10-11 22:30:10
Understanding relations between setOrigin, setScale and setPosition in libGdx
by mbabuskov
2014-10-09 22:35:00

Definite guide to supporting multiple device resolutions on Android (2014)
by mbabuskov
2014-10-02 22:36:02

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
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!