mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-05 22:30:29 +00:00
Fixed Steam Controller rumble on Android (thanks @Packetdancer!)
(cherry picked from commit 7103ed4167)
This commit is contained in:
parent
05d140a128
commit
7b0f45186b
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue