Hi !
Featured games (84)
games approved by the League of Dukes
Games in Showcase (603)
Games in Android Showcase (171)
games submitted by our members
Games in WIP (652)
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  
  Need ControllerListener to Work  (Read 2241 times)
0 Members and 1 Guest are viewing this topic.
Offline fwank

Junior Newbie

« Posted 2008-01-28 22:54:52 »


I'd like to be able to detect when a controller is removed/added from/to the ControllerEnvironment. ControllerListener instances are not notified and the array returned by getControllers() never changes once my app is running.

I know its a current issue that is not being addressed due to priorities, but its something that is very important to at least my application. Where do I place my vote to make it a higher priority?

Offline endolf

JGO Coder

Medals: 7
Exp: 15 years

Current project release date: sometime in 3003

« Reply #1 - Posted 2008-01-28 23:09:25 »

This is the place to raise the comment.

Offline fwank

Junior Newbie

« Reply #2 - Posted 2008-01-28 23:22:22 »

Nice, thanks.

So here is my arguement for why it is a high priority feature:

In my case, I am controlling semi-autonomous unmanned vehicles via JInput. If the operator accidentally pulls out a controller and then plugs it back in, the application needs to handle this case and allow the operator to regain control of the robot.  In general, if one needs to make a robust application, then this feature is very important.

I think JInput is a great API to work with, I really hope this feature gets implemented in the near future.


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

Innocent Bystander

« Reply #3 - Posted 2008-02-23 20:27:10 »

+1 for me  Smiley
Offline Tanrikut

Innocent Bystander

« Reply #4 - Posted 2008-02-26 11:38:40 »

+1 for me also. Smiley

I was trying to get this working about 4 hours until I learned from thi thread it is not working:( Hope to get this asap.

Offline endolf

JGO Coder

Medals: 7
Exp: 15 years

Current project release date: sometime in 3003

« Reply #5 - Posted 2008-02-26 19:35:46 »


Enough people have expressed interest in this now that I might do something about it Smiley. Under linux it will be awkward, it's all device file based, detecting removal will be easy, but rescanning the dev file system every few seconds seems like asking for trouble. Unless someone donates a mac, mac users will have to implement it. I think windows should be 'relativly' painless as IIRC the interface is already there, at least for joysticks, mice and keyboards might not be so easy.

I have other things on at the moment, so it will probably be next week before I get a chance to start looking at this properly. What are the platform requirements, obviously it would be nice to get it sorted on all of them, but is windows or linux or mac the one most in demand?


Pages: [1]
  ignore  |  Print  
You cannot reply to this message, because it is very, very old.

SHC (17 views)
2015-08-01 03:58:20

Jesse (18 views)
2015-07-29 04:35:27

Riven (38 views)
2015-07-27 16:38:00

Riven (20 views)
2015-07-27 15:35:20

Riven (23 views)
2015-07-27 12:26:13

Riven (13 views)
2015-07-27 12:23:39

BurntPizza (33 views)
2015-07-25 00:14:37

BurntPizza (45 views)
2015-07-24 22:06:39

BurntPizza (26 views)
2015-07-24 06:06:53

NoxInc (34 views)
2015-07-22 22:16:53
List of Learning Resources
by gouessej
2015-07-09 11:29:36

How Do I Expand My Game?
by bashfrog
2015-06-14 11:34:43

List of Learning Resources
by PocketCrafter7
2015-05-31 05:37:30

Intersection Methods
by Roquen
2015-05-29 08:19:33

List of Learning Resources
by SilverTiger
2015-05-05 10:20:32

How to: JGO Wiki
by Mac70
2015-02-17 20:56:16

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