renamed gamepad config page, No longer shit bricks if the gamepad disconnects while trying to map. Now rescans for gamepads

This commit is contained in:
Diego Waxemberg
2013-12-22 11:12:43 -05:00
parent 9f2fa09ef3
commit e7e87825ad
3 changed files with 61 additions and 47 deletions

View File

@@ -39,12 +39,10 @@ public class ControllerListener {
construct.setAccessible(true);
ControllerEnvironment defaultEnv = null;
//TODO: allow "rescanning" to work again
defaultEnv = (ControllerEnvironment)construct.newInstance();
while(!isInterrupted()) {
defaultEnv = (ControllerEnvironment)construct.newInstance();
Controller[] ca = defaultEnv.getControllers();
LinkedList<Controller> gamepads = new LinkedList<Controller>();