Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (495)
Games in Android Showcase (114)
games submitted by our members
Games in WIP (563)
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 2445 times)
0 Members and 1 Guest are viewing this topic.
Offline swpalmer

JGO Coder




Where's the Kaboom?


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

I read this on a Mac java mailing list:
Quote
...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: 164
Projects: 23
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..

Kev

Offline endolf

JGO Coder


Medals: 7


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

Endolf

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

Offline princec

JGO Kernel


Medals: 378
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


Current project release date: sometime in 3003


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

See my post above Smiley

Endolf

Offline swpalmer

JGO Coder




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.

BurntPizza (14 views)
2014-09-19 03:14:18

Dwinin (31 views)
2014-09-12 09:08:26

Norakomi (58 views)
2014-09-10 13:57:51

TehJavaDev (79 views)
2014-09-10 06:39:09

Tekkerue (40 views)
2014-09-09 02:24:56

mitcheeb (62 views)
2014-09-08 06:06:29

BurntPizza (45 views)
2014-09-07 01:13:42

Longarmx (31 views)
2014-09-07 01:12:14

Longarmx (36 views)
2014-09-07 01:11:22

Longarmx (36 views)
2014-09-07 01:10:19
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!