Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (579)
games submitted by our members
Games in WIP (499)
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  
  Creating a JInput Gamepad/Joystick DB  (Read 6060 times)
0 Members and 1 Guest are viewing this topic.
Offline Moabit70

Senior Newbie





« Posted 2009-02-08 19:10:31 »

Hi there,
i'd like to gather information on currently used JInput Gamepads and Joysticks to better support them with my applications.
I've prepared a Webstart application which collects the required data and writes it to a XML file. This file can then be mailed to me at the mail address displayed in the user interface of the application.

Please try out the following JNLP file and mail me your results:
http://87.230.91.148/applications/testjinput/CollectControllers.jnlp

<edit 07.03.09>
I've tested it on Windows XP, Vista, Ubuntu 8.10 and Mac OS X 10.4.11 as i'm loading those JInput libraries as well.
Connect all Gamepads (Sticks) before running the software. Also, please test on all your OSes.

Required is a Java runtime v1.5+, especially for Mac OS X 10.4.x users.
</edit 07.03.09>

I'll be presenting the results at my website later so that other developers can profit. The link will follow.
Cheers for any feedback!
Offline h3ckboy
« Reply #1 - Posted 2009-02-08 19:39:06 »

I dotn hav any gamepads on this computer. but besides detect it what else does it do? or is that it?
Offline Moabit70

Senior Newbie





« Reply #2 - Posted 2009-02-08 19:46:02 »

Hi again,

the tool generates a XML file which i'd like you to mail to me so that I can include support for that Gamepad/Joystick in my software currently being developed. The email address to send it to is shown in the application when you start it.

It shows you what to do in the user interface when you start it but you need at least 1 Gamepad or Joystick connected to get results.

Greetings.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline h3ckboy
« Reply #3 - Posted 2009-02-08 19:53:40 »

ok I got a usb JS and plugged it in. I emailed you the results.

Hope I helped. tell em if I did something wrong.
Offline Moabit70

Senior Newbie





« Reply #4 - Posted 2009-02-08 20:02:59 »

Thank you h3ckboy!
It worked fine and your results arrived well and were as required.

I'm trying to ease the access to games by keeping the installation and use simple, especially for users used to consoles. Getting a webstart application with support for lots of controllers is my first step there.

Regards.
Offline Moabit70

Senior Newbie





« Reply #5 - Posted 2009-02-11 08:54:03 »

Hi again,

i'd like to encourage more feedback from the Mac OS users. Please send me more results. If you prefer not to give your email address, you could post the link or contents of your XML file, or any other comments, here in this topic.

I've gotten some results from Windows XP, Vista and Linux users, where the data looks great. Apart from the XBOX 360 Controller, the few reported Gamepads seem to report similar settings.

Regards.
Offline h3ckboy
« Reply #6 - Posted 2009-02-11 12:36:27 »

hehe someone has an XBOX 360 in their computer. nice....
Offline Moabit70

Senior Newbie





« Reply #7 - Posted 2009-02-11 17:30:57 »

Hi h3ckboy,

the XBOX 360 Controller is a normal Windows controller which looks very similar to the one used on the XBOX 360 itself and can be connected to both a PC and an XBOX per USB cable.

It's readily available and is supported through the Microsoft XInput API, as well as JInput.
Offline mh114

Junior Member





« Reply #8 - Posted 2009-02-12 10:12:25 »

I've emailed you my results from Windows and Linux, using a Logitech Dual Action USB-gamepad. Smiley

Offline Moabit70

Senior Newbie





« Reply #9 - Posted 2009-02-14 22:10:11 »

Thanks to mh114 too!

It's really interesting to see that the same devices are reporting different names using Windows or Linux. The button and analog/digital mapping seems constant though. The biggest problem so far is the right stick of some gamepads: Sometimes they're showing their axes as rx/ry (XBox 360 controller), but mostly its z/rz (PS2 and others).

Secondly, the gamepads show different mappings and names if the default OS drivers (e.g. generic Windows USB drivers) are used in contrast to dedicated drivers provided with the devices, as they are not recognised correctly.

<edit 08.03.09>
I'm looking forward to more MacOSX information to see the effects for various versions of that OS.

Java runtime v1.5+ is required to run the JNLP application on Windows, Linux and Mac OS X 10.4+.
</edit 08.03.09>
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline endolf

JGO Knight


Medals: 7
Projects: 1


Current project release date: sometime in 3003


« Reply #10 - Posted 2009-02-15 19:35:29 »

It's really interesting to see that the same devices are reporting different names using Windows or Linux. The button and analog/digital mapping seems constant though. The biggest problem so far is the right stick of some gamepads: Sometimes they're showing their axes as rx/ry (XBox 360 controller), but mostly its z/rz (PS2 and others).

Secondly, the gamepads show different mappings and names if the default OS drivers (e.g. generic Windows USB drivers) are used in contrast to dedicated drivers provided with the devices, as they are not recognised correctly.

Yup, without a huge mapping layer for every device, we can't do alot, we just serve up what the OS tells us. Feel free to write a layer over the top to do the mapping though Smiley

Cheers

Endolf

Offline Moabit70

Senior Newbie





« Reply #11 - Posted 2009-03-07 16:13:15 »

Hi all,

i've updated the controller information collection application to depend on Java runtimes from 1.5+ upwards to increase availability especially for users of the Mac OS X v10.4+.

I've tested the webstart application myself on a Mac Mini with Mac OS X 10.4.11 using Safari.

Cheers for everyone sending me data, the results will be presented soon.
Offline Moabit70

Senior Newbie





« Reply #12 - Posted 2009-06-27 16:25:57 »

Thanks to everyone who sent me their data!
 
The CollectControllers application has been taken down, as i've gotten all the controller information I needed for the initial support in my applications.

Information about the applications and the specific controllers being supported will be available at http://www.zombieacademy.de/phpBB3/index.php.

Greetings.
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.

xsi3rr4x (31 views)
2014-04-15 18:08:23

BurntPizza (28 views)
2014-04-15 03:46:01

UprightPath (43 views)
2014-04-14 17:39:50

UprightPath (26 views)
2014-04-14 17:35:47

Porlus (42 views)
2014-04-14 15:48:38

tom_mai78101 (64 views)
2014-04-10 04:04:31

BurntPizza (124 views)
2014-04-08 23:06:04

tom_mai78101 (224 views)
2014-04-05 13:34:39

trollwarrior1 (190 views)
2014-04-04 12:06:45

CJLetsGame (198 views)
2014-04-01 02:16:10
List of Learning Resources
by SHC
2014-04-18 03:17:39

List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30
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!