object - Java getDefaultEnvironment() does not rescan hardware -


i trying refresh button reload list of controllers hardware check preformed once no matter how many times call it

controller[] controllers = controllerenvironment.getdefaultenvironment().getcontrollers(); 

this works fine first time executed , prints console:

jul 13, 2015 1:22:58 pm net.java.games.input.controllerenvironment log info: linux plugin claims have found 2 controllers 

these 2 controllers displayed in list.

the issue runs once , never re-preforms hardware scan not showing when controller disconnected. i have found question similar here on stack overflow not sure how works or if works linux.

could please explain why getdefaultenvironment() not rerun , simple way of forcing this?


Comments