Featured games (79)
games approved by the League of Dukes
Games in Showcase (475)
Games in Android Showcase (106)
games submitted by our members
Games in WIP (530)
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 2396 times)
0 Members and 1 Guest are viewing this topic.
Offline swpalmer

JGO Coder

Where's the Kaboom?

« Posted 2004-09-03 12: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 Kernel

Medals: 118
Projects: 23
Exp: 18 years

Coder, Trainee Pixel Artist, Game Reviewer

« Reply #1 - Posted 2004-09-03 12: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

Current project release date: sometime in 3003

« Reply #2 - Posted 2004-09-03 12: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

Where's the Kaboom?

« Reply #3 - Posted 2004-09-13 04: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.)

Offline princec

JGO Kernel

Medals: 339
Projects: 3
Exp: 16 years

Eh? Who? What? ... Me?

« Reply #4 - Posted 2004-09-13 15: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

Current project release date: sometime in 3003

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

See my post above Smiley


Offline swpalmer

JGO Coder

Where's the Kaboom?

« Reply #6 - Posted 2004-09-15 01: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.

ctomni231 (34 views)
2014-07-18 06:55:21

Zero Volt (30 views)
2014-07-17 23:47:54

danieldean (25 views)
2014-07-17 23:41:23

MustardPeter (27 views)
2014-07-16 23:30:00

Cero (42 views)
2014-07-16 00:42:17

Riven (44 views)
2014-07-14 18:02:53

OpenGLShaders (32 views)
2014-07-14 16:23:47

Riven (34 views)
2014-07-14 11:51:35

quew8 (30 views)
2014-07-13 13:57:52

SHC (66 views)
2014-07-12 17:50:04
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22 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!