Java-Gaming.org Hi !
Featured games (83)
games approved by the League of Dukes
Games in Showcase (513)
Games in Android Showcase (121)
games submitted by our members
Games in WIP (577)
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  
  nice test application  (Read 2445 times)
0 Members and 1 Guest are viewing this topic.
Offline TheBohemian

Junior Duke




Java will rule them all!


« Posted 2003-08-16 22:33:41 »

EDIT:
This is an old thread. It was bumped because I have re-released the application which is mentioned here. If you search for details: read on. If you want the app itself, look here: http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jinput;action=display;num=1087611855

Note: The license information here is obsolete. The app is now Free software licensed under the terms of the GPL.

Original posting:
This is my small contribution to the java gaming initiative. I hope this will help a lot of people ...

... understanding how to write an application with JInput.
... seeing how a particurlar input device behaves.
... finding bugs/inconsistencies in JInput.
...

The java source inside the jar is free of any royalties. Everyone is allowed to do whatever he/she wants. The gui was created with netbeans so I included the form-files as well.

The jar expects a working installation of JInput and its plugins.

Everything can be found here:
page.inf.fu-berlin.de/~rschuste/java/jinputtester.jar

It would be nice to get some response from you.

cya

TheBohemian

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

JGO Coder




Got any cats?


« Reply #1 - Posted 2003-09-02 16:47:28 »

Well my response is"Thanks!"

I'll try to take a look at it and make mroe comments sometiem this week amid everything else I have on the plate...

JK

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Offline TheBohemian

Junior Duke




Java will rule them all!


« Reply #2 - Posted 2003-09-08 01:06:51 »

Since my post was getting older and older with no reply I already thought nobody noticed it ... Cheesy

To make the app more attractive I will add JNLP support to it. Therefore I need some information of how to install the native plugins automatically.
Can anyone help?

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 16:13:08 »

can i just make a small suggestion?

i tried making a small change by setting the timer to 50 ms intervals instead of 250.

it makes the program feel a lot more responsive, and updates a lot more frequently. (and still only uses 0-3% of the 1ghz cpu)
Offline TheBohemian

Junior Duke




Java will rule them all!


« Reply #4 - Posted 2003-09-23 18:42:32 »

- JuddMan's suggestion is included: update interval changed to 50 ms
- JARs on my universities webserver are now self-signed
- when Jinput cannot be located a useful suggestion is displayed instead of showing the exception

There is a JNLP now but it doesn't work so far. It assumes to have the platform dependant plugins installed in ${jdk.home}/lib/controller. My explanation to the exception that you will encounter is that webstart doesn't allow loading of native libraries (although I request 'all-permission's in the JNLP file)
When the problem is solved I will post an update.

http://page.inf.fu-berlin.de/~rschuste/java/jinputtesterFU.jnlp

Another problem you might encounter is that the webserver does not handle the MIME type for JNLP files correctly. You have to put the above link into the address line of webstart (or other JNLP client).

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 #5 - Posted 2003-09-23 22:37:20 »

This update is for people who always want to know more Smiley

The current version checks for availability of BeanShell in the classpath and if it is successful an console can be activated. The Interpreter contains an array named 'controllers' that contains all the devices that your system returns for ControllerEnvironment.getControllers().
To make things more convenient accessibility has been turned on (allows manipulation of non-public members) and the (main) packages of jutils and jinput have been imported.

And now something to the way JInputTester expects to find BeanShell:
1) If you have installed any version of BeanShell as an extension then it can be used without further doings.

2) Download some newer version from beanshell.org, rename it to bsh.jar and copy it to the directory where jinputtester.jar is located.

For all who don't know what BeanShell is. Simply try my application and type some valid (!) Java statements in the console (eg: frame = new Frame("bla"); frame.show(); ) Soon you'll begin to love it ... Cheesy

- EDIT:

fixed smiley Cheesy

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 #6 - Posted 2003-09-24 19:37:36 »

The application can now be used with webstart because I have modified the jinput.jar a bit to get it working. As the included version of the library is not official I recommend to not spread this version too much. As soon as some official solution for the problem stated here http://www.JavaGaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jinput;action=display;num=1064272481 is available I will switch over to that.

Since I couldn't find a binary for macos [X] support for this platform is broken Sad

Currently Linux and Windows versions should work fine.
Linux users: If some strange happens when trying the app please report these here. At the moment this OS is missing on my system. Smiley

cya

TheBohemian

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

JGO Coder


Exp: 12 years


Where's the Kaboom?


« Reply #7 - Posted 2003-09-25 00:36:00 »

Quote
Since I couldn't find a binary for macos [X] support for this platform is broken Sad


It's in the shared files area of the JInput project.

Offline TheBohemian

Junior Duke




Java will rule them all!


« Reply #8 - Posted 2003-09-28 22:40:19 »

MacOS X is now supported but I cannot guarantee that it works. If someone uses macos x: please tell me what is the value of System.getProperty("os.name")?

cya

TheBohemian

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

JGO Coder


Exp: 12 years


Where's the Kaboom?


« Reply #9 - Posted 2003-09-29 13:20:04 »

os.name=Mac OS X

Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline TheBohemian

Junior Duke




Java will rule them all!


« Reply #10 - Posted 2004-09-15 21:57:32 »

I have re-released the app. Links are now available in the sticky introduction thread: http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jinput;action=display;num=1087611855

cya

TheBohemian

---------------------------------------
my favorite OS: http://jnode.sf.net
Java 1.5 -> 1.4 converter: http://retroweaver.sf.net
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.

theagentd (20 views)
2014-10-25 15:46:29

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

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

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

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

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

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

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

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

BurntPizza (46 views)
2014-10-11 23:10:45
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!