Guard against Steam Controller input when we're shutting down.
authorSam Lantinga <slouken@libsdl.org>
Fri, 14 Sep 2018 18:31:03 -0700
changeset 12187e755760381d8
parent 12186 6e9555603dc5
child 12188 f081a5675f93
Guard against Steam Controller input when we're shutting down.
android-project/app/src/main/java/org/libsdl/app/HIDDeviceBLESteamController.java
     1.1 --- a/android-project/app/src/main/java/org/libsdl/app/HIDDeviceBLESteamController.java	Fri Sep 14 18:31:01 2018 -0700
     1.2 +++ b/android-project/app/src/main/java/org/libsdl/app/HIDDeviceBLESteamController.java	Fri Sep 14 18:31:03 2018 -0700
     1.3 @@ -479,7 +479,7 @@
     1.4      // Enable this for verbose logging of controller input reports
     1.5          //Log.v(TAG, "onCharacteristicChanged uuid=" + characteristic.getUuid() + " data=" + HexDump.dumpHexString(characteristic.getValue()));
     1.6  
     1.7 -        if (characteristic.getUuid().equals(inputCharacteristic)) {
     1.8 +        if (characteristic.getUuid().equals(inputCharacteristic) && !mFrozen) {
     1.9              mManager.HIDDeviceInputReport(getId(), characteristic.getValue());
    1.10          }
    1.11      }