From 7103ed4167d258a8fa7de58cd2bec9155b061ebf Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 28 May 2026 11:17:40 -0700 Subject: [PATCH] Fixed Steam Controller rumble on Android (thanks @Packetdancer!) --- .../main/java/org/libsdl/app/HIDDeviceBLESteamController.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android-project/app/src/main/java/org/libsdl/app/HIDDeviceBLESteamController.java b/android-project/app/src/main/java/org/libsdl/app/HIDDeviceBLESteamController.java index ec13d0fdd5..bcd8806c41 100644 --- a/android-project/app/src/main/java/org/libsdl/app/HIDDeviceBLESteamController.java +++ b/android-project/app/src/main/java/org/libsdl/app/HIDDeviceBLESteamController.java @@ -765,7 +765,7 @@ class HIDDeviceBLESteamController extends BluetoothGattCallback implements HIDDe // If we're a Triton, we need to find the correct report characteristic. if (report.length > 0) { - int reportId = report[0]; + int reportId = report[0] & 0xFF; BluetoothGattCharacteristic targetedReportCharacteristic = mOutputReportChars.get(reportId); if (targetedReportCharacteristic != null) { byte[] actual_report = Arrays.copyOfRange(report, 1, report.length - 1);