While I've only been here shortly, and not in depth, I think that JInput not detecting if a controller was unplugged or plugged was a recurring problem. So far as I can tell (someone can correct me if I'm wrong) this thread has a solution with the last post also being a solution which no one has expanded on though.
Yes thanks a lot that works! I'm using it like that:
| 1 2 3 | private Controller cs[],ctrl; |
The problem is that it's too damn slow. I'll see what I can do to speed it up, either using another timer for the enviroment check or catching the "Failed to poll device" exception. By the way, is that an exception I can catch? Who throws it?



