mirror of
https://github.com/encounter/SDL.git
synced 2025-12-11 14:41:56 +00:00
Fixed crash on Windows Subsystem for Android, which doesn't have a USB manager.
Fixes https://github.com/libsdl-org/SDL/issues/5133
This commit is contained in:
@@ -141,6 +141,9 @@ public class HIDDeviceManager {
|
|||||||
|
|
||||||
private void initializeUSB() {
|
private void initializeUSB() {
|
||||||
mUsbManager = (UsbManager)mContext.getSystemService(Context.USB_SERVICE);
|
mUsbManager = (UsbManager)mContext.getSystemService(Context.USB_SERVICE);
|
||||||
|
if (mUsbManager == null) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
// Logging
|
// Logging
|
||||||
|
|||||||
Reference in New Issue
Block a user