Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (549)
Games in Android Showcase (139)
games submitted by our members
Games in WIP (593)
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  
  javax.usb  (Read 2525 times)
0 Members and 1 Guest are viewing this topic.
Offline swpalmer

JGO Coder

Exp: 12 years

Where's the Kaboom?

« Posted 2004-09-03 10:13:29 »

I read this on a Mac java mailing list:
...Then there is the Javax USB project (JSR-080), which will eventually be a standard -- but again, there is currently no OS X support.

     Just a quick follow-up to my own message, in the event anyone comes around here looking for something similar.

     I've been in contact with a team of engineers over at Sun, along with some other Open Source developers, and it looks like an imminent effort is going to be made to implement javax.usb using the libusb project.  As libusb is available for Mac OS X, this bodes very well for having full USB device access for Java-based applications in the near future.

Could this be a great way to write some JInput plugins?

Offline kevglass

« JGO Spiffy Duke »

Medals: 232
Projects: 24
Exp: 18 years

Coder, Trainee Pixel Artist, Game Reviewer

« Reply #1 - Posted 2004-09-03 10:26:18 »

I had a look at this recently, libusb is pretty low level, writing controllers access with it would be possible but would be a fair bit of work. I guess this is why each OS provider is putting an API on top of controller access..


Offline endolf

JGO Coder

Medals: 7
Exp: 15 years

Current project release date: sometime in 3003

« Reply #2 - Posted 2004-09-03 10:52:04 »

For custom USB hardware, yes, for HID complient devices, then the HID support layer over the top of the USB stack would need to be implemented. I suspect that as/when/if javax.usb arrives, then someone (maybe someone here) will write it, then it might make a plugin. However, this assumes all hardware is HID complient and USB. Are all mac keyboards/mice USB devices, and HID complient?, because I know for sure that most PCs, even new ones, come with ps2 mice/keyboards (The new Dells at work for example are ps2 mice and keyboards, although I replaced the mouse with one of my own because it was awfull).


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

JGO Coder

Exp: 12 years

Where's the Kaboom?

« Reply #3 - Posted 2004-09-13 02:23:16 »

All modern Mac keyboards seem to be USB based HID devices.  Though it seems that there is some sort of hack to make an older Mac bus thing for keyboards fit into the HID support on a Mac.. So scanning the USB bus might actually miss the keyboard on a powerbook for example.

It seems it is time for the PS/2 mouse and keyboard connectors to go away in any case.  Though I was more interested in this for support of game-specific controllers. (USB gamepads, driving wheels & pedals, flight yokes, etc.)

Online princec

« JGO Spiffy Duke »

Medals: 456
Projects: 3
Exp: 16 years

Eh? Who? What? ... Me?

« Reply #4 - Posted 2004-09-13 13:45:24 »

USB support would be great... if you were writing HID device drivers in Java!

What you really want is javax.hid isn't it?

Cas Smiley

Offline endolf

JGO Coder

Medals: 7
Exp: 15 years

Current project release date: sometime in 3003

« Reply #5 - Posted 2004-09-13 14:23:51 »

See my post above Smiley


Offline swpalmer

JGO Coder

Exp: 12 years

Where's the Kaboom?

« Reply #6 - Posted 2004-09-14 23:52:17 »

Yeah, like Endolf says, you would need to add a HID layer on top.. but hopefully that could be pure Java on top of javax.usb...

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.

Archive (21 views)
2015-01-29 04:26:08

theagentd (21 views)
2015-01-28 15:33:52

GamerIDGoesHere (29 views)
2015-01-27 01:23:23

GamerIDGoesHere (31 views)
2015-01-27 01:22:15

CopyableCougar4 (38 views)
2015-01-27 00:34:41

CopyableCougar4 (23 views)
2015-01-26 04:47:56

Olo (17 views)
2015-01-25 21:26:00

Olo (23 views)
2015-01-25 18:44:22

Robo11 (39 views)
2015-01-25 06:14:26

basil_ (33 views)
2015-01-17 22:29:32
2D Dynamic Lighting
by ThePixelPony
2015-01-01 20:25:42

How do I start Java Game Development?
by gouessej
2014-12-27 19:41:21

Resources for WIP games
by kpars
2014-12-18 10:26:14

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