Need ControllerListener to Work

Hello,

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?

Thanks

This is the place to raise the comment.

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.

Thanks

+1 for me :slight_smile:

+1 for me also. :slight_smile:

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.

Ok.

Enough people have expressed interest in this now that I might do something about it :). 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?

Endolf