Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (491)
Games in Android Showcase (112)
games submitted by our members
Games in WIP (556)
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  
  JInput on Windows/Mac for new gaming device....  (Read 3302 times)
0 Members and 1 Guest are viewing this topic.
Offline was22

Junior Newbie





« Posted 2010-10-31 23:28:18 »

Hi,

My company is developing a new foot operated gaming device that connects through USB to Windows and Macs machines. We were considering doing the development in C++ because of the unavailability of USB support from Javasoft. However, after quite an amount of time spent searching online, I found JInput.

My question to all those who have used it: is it stable for use in production quality software?
Can we rely on it to access USB smoothly from Windows and Mac?

Of course, will be doing my own testing. Still, much appreciate you input and exprience
with this library. I will post my experience anyways for others to benefit from.

Thanks for reading (and hopefully responding:)
Saad

Oct 31,2010

Offline Riven
« League of Dukes »

JGO Overlord


Medals: 783
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #1 - Posted 2010-10-31 23:44:59 »

If the USB device registers itself as a Human Input Device, you should be safe. JInput does little more than exposing the controllers in the system. If (for example) DX can do it, JInput should be able to do it too.

Hi, appreciate more people! Σ ♥ = ¾
Learn how to award medals... and work your way up the social rankings
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #2 - Posted 2010-11-01 07:10:07 »

JInput relies on the OS to handle the device, it's little more than a wrapper around the native code. On OSX this means a HID device, under linux it has to show up in /dev/input/event* and under windows it needs to appear as a raw device and/or a directx device.

HTH

Endolf

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

Junior Newbie





« Reply #3 - Posted 2010-11-02 15:39:25 »

Hi,

Thanks all for your responses.

At the time being, it is implemented as a USB-CDC (Communications device control).  So, it
appears as a comm port to Windows and all needed is to talk to the comm
port that appears in COM & LPT ports list.

Does the JInput support CDC?

Regards,
Saad
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #4 - Posted 2010-11-02 15:45:12 »

As per my previous post, JInput relies on HID devices on osx, Raw/Directx in windows and /dev/input/event* on linux, it isn't a general USB handler. It doesn't handle any other port type, there is a project that handles com ports under windows for Java if I remember correctly.

JInput does have a plugin mechanism, so with some work by an interested party, it could be made to read com ports (virtual or otherwise), but it does make assumptions about what is exposed, e.g. axis, buttons etc.

Endolf

Offline Nate

JGO Kernel


Medals: 145
Projects: 4
Exp: 14 years


Esoteric Software


« Reply #5 - Posted 2010-11-02 20:36:51 »

At the time being, it is implemented as a USB-CDC (Communications device control).  So, it
appears as a comm port to Windows and all needed is to talk to the comm
port that appears in COM & LPT ports list.

Your best bet, if you want to use Java, is to use the rxtx project:
http://users.frii.com/jarvi/rxtx/
See here for an example:
http://code.google.com/p/pg3b/
Specifically:
http://code.google.com/p/pg3b/source/browse/trunk/Java/src/com/esotericsoftware/controller/pg3b/PG3B.java

Offline was22

Junior Newbie





« Reply #6 - Posted 2010-11-02 23:56:50 »

Thanks all for your response. Rxtx seems what I was looking for.
Regards.
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.

Nickropheliac (15 views)
2014-08-31 22:59:12

TehJavaDev (23 views)
2014-08-28 18:26:30

CopyableCougar4 (29 views)
2014-08-22 19:31:30

atombrot (41 views)
2014-08-19 09:29:53

Tekkerue (38 views)
2014-08-16 06:45:27

Tekkerue (35 views)
2014-08-16 06:22:17

Tekkerue (25 views)
2014-08-16 06:20:21

Tekkerue (34 views)
2014-08-16 06:12:11

Rayexar (72 views)
2014-08-11 02:49:23

BurntPizza (48 views)
2014-08-09 21:09:32
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!