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  
  Dynamic additions  (Read 1220 times)
0 Members and 1 Guest are viewing this topic.
Offline giles7777

Senior Newbie




Java games rock!


« Posted 2004-09-17 19:59:22 »

Does jinput support dynamic editions of USB devices after initialization?  I've tried calling:

       ControllerEnvironment ce = ControllerEnvironment.getDefaultEnvironment();
       Controller[] ca = ce.getControllers();

But I don't see an increase in the number of controllers when I plug one in.  Ideally it would be a listener I could request updates on newly added or removed devices.  If its not in the library I can look at adding it.  Its not a high priority for our project but it would be nice.
Offline endolf

JGO Coder


Medals: 7


Current project release date: sometime in 3003


« Reply #1 - Posted 2004-09-18 18:33:55 »

Hi
 The framework is there, it's just a case of the plugins supporting it, and currently, they don't, there are notifications for device attachment and removal as far as I know Smiley

Endolf

Offline TheBohemian

Junior Member




Java will rule them all!


« Reply #2 - Posted 2004-09-18 21:31:28 »

AFAIK DirectInput is not able to do this. On Linux things are a bit different. I just do not know how device additions and removals could be detected but that does not mean that it is not possible. Maybe we should contact the appropriate maintainer for this.

cya

TheBohemian

---------------------------------------
my favorite OS: http://jnode.sf.net
Java 1.5 -> 1.4 converter: http://retroweaver.sf.net
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-20 00:43:30 »

Any USB controllers should be hot-pluggable.  But JInput plugins might not rescan the bus after they have initialized.  If this isn't working you should prbbaly file an issue in the java.net issue tracker for the JInput project.

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.

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

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

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

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

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

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

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

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

Longarmx (34 views)
2014-09-07 01:10:19

mitcheeb (40 views)
2014-09-04 23:08:59
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!