Make nextDeviceId non-static since the lifetime of ControllerHandler is also just the life of the connection

This commit is contained in:
Cameron Gutman 2016-01-28 13:02:30 -05:00
parent 3be10a1b59
commit 9d2b6f8854

View File

@ -31,7 +31,7 @@ public class UsbDriverService extends Service implements UsbDriverListener {
private final ArrayList<AbstractController> controllers = new ArrayList<>();
private UsbDriverListener listener;
private static int nextDeviceId;
private int nextDeviceId;
@Override
public void reportControllerState(int controllerId, short buttonFlags, float leftStickX, float leftStickY, float rightStickX, float rightStickY, float leftTrigger, float rightTrigger) {