[Commits] SDL: Guard against Steam Controller input when we're shutting down.

libsdl.org revision control commits-owner at libsdl.org
Fri Sep 14 18:32:23 PDT 2018


details:   https://hg.libsdl.org/SDL/rev/e755760381d8
changeset: 12187:e755760381d8
user:      Sam Lantinga <slouken at libsdl.org>
date:      Fri Sep 14 18:31:03 2018 -0700
description:
Guard against Steam Controller input when we're shutting down.

diffstat:

 android-project/app/src/main/java/org/libsdl/app/HIDDeviceBLESteamController.java |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 6e9555603dc5 -r e755760381d8 android-project/app/src/main/java/org/libsdl/app/HIDDeviceBLESteamController.java
--- a/android-project/app/src/main/java/org/libsdl/app/HIDDeviceBLESteamController.java	Fri Sep 14 18:31:01 2018 -0700
+++ b/android-project/app/src/main/java/org/libsdl/app/HIDDeviceBLESteamController.java	Fri Sep 14 18:31:03 2018 -0700
@@ -479,7 +479,7 @@
     // Enable this for verbose logging of controller input reports
         //Log.v(TAG, "onCharacteristicChanged uuid=" + characteristic.getUuid() + " data=" + HexDump.dumpHexString(characteristic.getValue()));
 
-        if (characteristic.getUuid().equals(inputCharacteristic)) {
+        if (characteristic.getUuid().equals(inputCharacteristic) && !mFrozen) {
             mManager.HIDDeviceInputReport(getId(), characteristic.getValue());
         }
     }


More information about the commits mailing list