Definition at line 26 of file HIDDeviceManager.java.
◆ HIDDeviceManager()
org.libsdl.app.HIDDeviceManager.HIDDeviceManager |
( |
final Context |
context | ) |
|
|
inlineprivate |
Definition at line 104 of file HIDDeviceManager.java.
References context, e, org.libsdl.app.HIDDeviceManager.HIDDeviceRegisterCallback(), org.libsdl.app.HIDDeviceManager.initializeBluetooth(), org.libsdl.app.HIDDeviceManager.initializeUSB(), and org.libsdl.app.SDL.loadLibrary().
Referenced by org.libsdl.app.HIDDeviceManager.acquire().
109 SDL.loadLibrary(
"hidapi");
110 }
catch (Throwable
e) {
111 Log.w(
TAG,
"Couldn't load hidapi: " + e.toString());
113 AlertDialog.Builder builder =
new AlertDialog.Builder(
context);
114 builder.setCancelable(
false);
115 builder.setTitle(
"SDL HIDAPI Error");
116 builder.setMessage(
"Please report the following error to the SDL maintainers: " + e.getMessage());
117 builder.setNegativeButton(
"Quit",
new DialogInterface.OnClickListener() {
119 public void onClick(DialogInterface dialog,
int which) {
123 Activity activity = (Activity)
context;
127 catch (ClassCastException cce) {
SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char const char SDL_SCANF_FORMAT_STRING const char return SDL_ThreadFunction const char void return Uint32 return Uint32 SDL_AssertionHandler void SDL_SpinLock SDL_atomic_t int int return SDL_atomic_t return void void void return void return int return SDL_AudioSpec SDL_AudioSpec return int int return return int SDL_RWops int SDL_AudioSpec Uint8 Uint32 * e
static screen_context_t context
native void HIDDeviceRegisterCallback()
SharedPreferences mSharedPreferences
void initializeBluetooth()
◆ acquire()
static HIDDeviceManager org.libsdl.app.HIDDeviceManager.acquire |
( |
Context |
context | ) |
|
|
inlinestatic |
◆ chromebookConnectionHandler()
void org.libsdl.app.HIDDeviceManager.chromebookConnectionHandler |
( |
| ) |
|
|
inline |
◆ close()
void org.libsdl.app.HIDDeviceManager.close |
( |
| ) |
|
|
inlineprivate |
◆ closeDevice()
void org.libsdl.app.HIDDeviceManager.closeDevice |
( |
int |
deviceID | ) |
|
|
inline |
Definition at line 651 of file HIDDeviceManager.java.
References device, e, org.libsdl.app.HIDDeviceManager.getDevice(), org.libsdl.app.HIDDeviceManager.HIDDeviceRegisterCallback(), and org.libsdl.app.HIDDeviceManager.HIDDeviceReleaseCallback().
653 Log.v(
TAG,
"closeDevice deviceID=" + deviceID);
656 if (device == null) {
662 }
catch (Exception
e) {
663 Log.e(
TAG,
"Got exception: " + Log.getStackTraceString(e));
HIDDevice getDevice(int id)
SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char const char SDL_SCANF_FORMAT_STRING const char return SDL_ThreadFunction const char void return Uint32 return Uint32 SDL_AssertionHandler void SDL_SpinLock SDL_atomic_t int int return SDL_atomic_t return void void void return void return int return SDL_AudioSpec SDL_AudioSpec return int int return return int SDL_RWops int SDL_AudioSpec Uint8 Uint32 * e
static SDL_AudioDeviceID device
JNIEXPORT void JNICALL HID_DEVICE_MANAGER_JAVA_INTERFACE() HIDDeviceDisconnected(JNIEnv *env, jobject thiz, int nDeviceID)
◆ connectBluetoothDevice()
boolean org.libsdl.app.HIDDeviceManager.connectBluetoothDevice |
( |
BluetoothDevice |
bluetoothDevice | ) |
|
|
inline |
◆ connectHIDDeviceUSB()
void org.libsdl.app.HIDDeviceManager.connectHIDDeviceUSB |
( |
UsbDevice |
usbDevice | ) |
|
|
inlineprivate |
Definition at line 360 of file HIDDeviceManager.java.
References device, and org.libsdl.app.HIDDeviceManager.isHIDDeviceInterface().
Referenced by org.libsdl.app.HIDDeviceManager.handleUsbDeviceAttached().
361 synchronized (
this) {
365 int id = device.getId();
368 HIDDeviceConnected(
id, device.getIdentifier(), device.getVendorId(), device.getProductId(), device.getSerialNumber(), device.getVersion(), device.getManufacturerName(), device.getProductName(),
interface_number);
HashMap< Integer, HIDDevice > mDevicesById
static SDL_AudioDeviceID device
HashMap< UsbDevice, HIDDeviceUSB > mUSBDevices
boolean isHIDDeviceInterface(UsbDevice usbDevice, int interface_number)
JNIEXPORT void JNICALL HID_DEVICE_MANAGER_JAVA_INTERFACE() HIDDeviceConnected(JNIEnv *env, jobject thiz, int nDeviceID, jstring sIdentifier, int nVendorId, int nProductId, jstring sSerialNumber, int nReleaseNumber, jstring sManufacturer, jstring sProduct, int nInterface)
◆ disconnectBluetoothDevice()
void org.libsdl.app.HIDDeviceManager.disconnectBluetoothDevice |
( |
BluetoothDevice |
bluetoothDevice | ) |
|
|
inline |
Definition at line 497 of file HIDDeviceManager.java.
References device.
Referenced by org.libsdl.app.HIDDeviceManager.chromebookConnectionHandler().
498 synchronized (
this) {
503 int id = device.getId();
HashMap< Integer, HIDDevice > mDevicesById
static SDL_AudioDeviceID device
JNIEXPORT void JNICALL HID_DEVICE_MANAGER_JAVA_INTERFACE() HIDDeviceDisconnected(JNIEnv *env, jobject thiz, int nDeviceID)
HashMap< BluetoothDevice, HIDDeviceBLESteamController > mBluetoothDevices
◆ getContext()
Context org.libsdl.app.HIDDeviceManager.getContext |
( |
| ) |
|
|
inline |
◆ getDevice()
HIDDevice org.libsdl.app.HIDDeviceManager.getDevice |
( |
int |
id | ) |
|
|
inlineprivate |
◆ getDeviceIDForIdentifier()
int org.libsdl.app.HIDDeviceManager.getDeviceIDForIdentifier |
( |
String |
identifier | ) |
|
|
inline |
Definition at line 160 of file HIDDeviceManager.java.
169 spedit.putInt(identifier, result);
SharedPreferences mSharedPreferences
◆ getFeatureReport()
boolean org.libsdl.app.HIDDeviceManager.getFeatureReport |
( |
int |
deviceID, |
|
|
byte [] |
report |
|
) |
| |
|
inline |
Definition at line 634 of file HIDDeviceManager.java.
References device, e, and org.libsdl.app.HIDDeviceManager.getDevice().
636 Log.v(
TAG,
"getFeatureReport deviceID=" + deviceID);
639 if (device == null) {
644 return device.getFeatureReport(report);
645 }
catch (Exception
e) {
646 Log.e(
TAG,
"Got exception: " + Log.getStackTraceString(e));
HIDDevice getDevice(int id)
SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char const char SDL_SCANF_FORMAT_STRING const char return SDL_ThreadFunction const char void return Uint32 return Uint32 SDL_AssertionHandler void SDL_SpinLock SDL_atomic_t int int return SDL_atomic_t return void void void return void return int return SDL_AudioSpec SDL_AudioSpec return int int return return int SDL_RWops int SDL_AudioSpec Uint8 Uint32 * e
static SDL_AudioDeviceID device
JNIEXPORT void JNICALL HID_DEVICE_MANAGER_JAVA_INTERFACE() HIDDeviceDisconnected(JNIEnv *env, jobject thiz, int nDeviceID)
◆ handleUsbDeviceAttached()
void org.libsdl.app.HIDDeviceManager.handleUsbDeviceAttached |
( |
UsbDevice |
usbDevice | ) |
|
|
inlineprivate |
◆ handleUsbDeviceDetached()
void org.libsdl.app.HIDDeviceManager.handleUsbDeviceDetached |
( |
UsbDevice |
usbDevice | ) |
|
|
inlineprivate |
Definition at line 336 of file HIDDeviceManager.java.
References device.
341 int id = device.getId();
HashMap< Integer, HIDDevice > mDevicesById
static SDL_AudioDeviceID device
HashMap< UsbDevice, HIDDeviceUSB > mUSBDevices
JNIEXPORT void JNICALL HID_DEVICE_MANAGER_JAVA_INTERFACE() HIDDeviceDisconnected(JNIEnv *env, jobject thiz, int nDeviceID)
◆ handleUsbDevicePermission()
void org.libsdl.app.HIDDeviceManager.handleUsbDevicePermission |
( |
UsbDevice |
usbDevice, |
|
|
boolean |
permission_granted |
|
) |
| |
|
inlineprivate |
Definition at line 348 of file HIDDeviceManager.java.
References device.
353 boolean opened =
false;
354 if (permission_granted) {
355 opened = device.open();
static SDL_AudioDeviceID device
HashMap< UsbDevice, HIDDeviceUSB > mUSBDevices
JNIEXPORT void JNICALL HID_DEVICE_MANAGER_JAVA_INTERFACE() HIDDeviceOpenResult(JNIEnv *env, jobject thiz, int nDeviceID, bool bOpened)
◆ HIDDeviceRegisterCallback()
native void org.libsdl.app.HIDDeviceManager.HIDDeviceRegisterCallback |
( |
| ) |
|
|
private |
◆ HIDDeviceReleaseCallback()
native void org.libsdl.app.HIDDeviceManager.HIDDeviceReleaseCallback |
( |
| ) |
|
|
private |
◆ initializeBluetooth()
void org.libsdl.app.HIDDeviceManager.initializeBluetooth |
( |
| ) |
|
|
inlineprivate |
Definition at line 375 of file HIDDeviceManager.java.
References org.libsdl.app.HIDDeviceManager.connectBluetoothDevice(), device, and org.libsdl.app.HIDDeviceManager.isSteamController().
Referenced by org.libsdl.app.HIDDeviceManager.HIDDeviceManager().
376 Log.d(
TAG,
"Initializing Bluetooth");
378 if (
mContext.getPackageManager().checkPermission(android.Manifest.permission.BLUETOOTH,
mContext.getPackageName()) != PackageManager.PERMISSION_GRANTED) {
379 Log.d(
TAG,
"Couldn't initialize Bluetooth, missing android.permission.BLUETOOTH");
391 if (btAdapter == null) {
397 for (BluetoothDevice
device : btAdapter.getBondedDevices()) {
399 Log.d(
TAG,
"Bluetooth device available: " +
device);
407 IntentFilter
filter =
new IntentFilter();
408 filter.addAction(BluetoothDevice.ACTION_ACL_CONNECTED);
409 filter.addAction(BluetoothDevice.ACTION_ACL_DISCONNECTED);
413 mHandler =
new Handler(Looper.getMainLooper());
boolean connectBluetoothDevice(BluetoothDevice bluetoothDevice)
final BroadcastReceiver mBluetoothBroadcast
List< BluetoothDevice > mLastBluetoothDevices
static SDL_AudioDeviceID device
boolean isSteamController(BluetoothDevice bluetoothDevice)
BluetoothManager mBluetoothManager
GLint GLint GLint GLint GLint GLint GLint GLbitfield GLenum filter
◆ initializeUSB()
void org.libsdl.app.HIDDeviceManager.initializeUSB |
( |
| ) |
|
|
inlineprivate |
◆ isHIDDeviceInterface()
boolean org.libsdl.app.HIDDeviceManager.isHIDDeviceInterface |
( |
UsbDevice |
usbDevice, |
|
|
int |
interface_number |
|
) |
| |
|
inlineprivate |
◆ isHIDDeviceUSB()
boolean org.libsdl.app.HIDDeviceManager.isHIDDeviceUSB |
( |
UsbDevice |
usbDevice | ) |
|
|
inlineprivate |
◆ isSteamController()
boolean org.libsdl.app.HIDDeviceManager.isSteamController |
( |
BluetoothDevice |
bluetoothDevice | ) |
|
|
inline |
◆ isXbox360Controller()
boolean org.libsdl.app.HIDDeviceManager.isXbox360Controller |
( |
UsbDevice |
usbDevice, |
|
|
UsbInterface |
usbInterface |
|
) |
| |
|
inlineprivate |
Definition at line 266 of file HIDDeviceManager.java.
Referenced by org.libsdl.app.HIDDeviceManager.isHIDDeviceInterface().
267 final int XB360_IFACE_SUBCLASS = 93;
268 final int XB360_IFACE_PROTOCOL = 1;
269 final int[] SUPPORTED_VENDORS = {
292 if (usbInterface.getInterfaceClass() == UsbConstants.USB_CLASS_VENDOR_SPEC &&
293 usbInterface.getInterfaceSubclass() == XB360_IFACE_SUBCLASS &&
294 usbInterface.getInterfaceProtocol() == XB360_IFACE_PROTOCOL) {
296 for (
int supportedVid : SUPPORTED_VENDORS) {
297 if (vendor_id == supportedVid) {
◆ isXboxOneController()
boolean org.libsdl.app.HIDDeviceManager.isXboxOneController |
( |
UsbDevice |
usbDevice, |
|
|
UsbInterface |
usbInterface |
|
) |
| |
|
inlineprivate |
Definition at line 305 of file HIDDeviceManager.java.
Referenced by org.libsdl.app.HIDDeviceManager.isHIDDeviceInterface().
306 final int XB1_IFACE_SUBCLASS = 71;
307 final int XB1_IFACE_PROTOCOL = 208;
308 final int[] SUPPORTED_VENDORS = {
317 if (usbInterface.getInterfaceClass() == UsbConstants.USB_CLASS_VENDOR_SPEC &&
318 usbInterface.getInterfaceSubclass() == XB1_IFACE_SUBCLASS &&
319 usbInterface.getInterfaceProtocol() == XB1_IFACE_PROTOCOL) {
321 for (
int supportedVid : SUPPORTED_VENDORS) {
322 if (vendor_id == supportedVid) {
◆ openDevice()
boolean org.libsdl.app.HIDDeviceManager.openDevice |
( |
int |
deviceID | ) |
|
|
inline |
Definition at line 565 of file HIDDeviceManager.java.
References org.libsdl.app.HIDDeviceManager.ACTION_USB_PERMISSION, device, e, and org.libsdl.app.HIDDeviceManager.getDevice().
568 if (deviceID ==
device.getId()) {
569 UsbDevice usbDevice =
device.getDevice();
574 }
catch (Exception
e) {
575 Log.v(
TAG,
"Couldn't request permission for USB device " + usbDevice);
585 Log.v(
TAG,
"openDevice deviceID=" + deviceID);
588 if (device == null) {
593 return device.open();
594 }
catch (Exception
e) {
595 Log.e(
TAG,
"Got exception: " + Log.getStackTraceString(e));
HIDDevice getDevice(int id)
SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char const char SDL_SCANF_FORMAT_STRING const char return SDL_ThreadFunction const char void return Uint32 return Uint32 SDL_AssertionHandler void SDL_SpinLock SDL_atomic_t int int return SDL_atomic_t return void void void return void return int return SDL_AudioSpec SDL_AudioSpec return int int return return int SDL_RWops int SDL_AudioSpec Uint8 Uint32 * e
JNIEXPORT void JNICALL HID_DEVICE_MANAGER_JAVA_INTERFACE() HIDDeviceOpenPending(JNIEnv *env, jobject thiz, int nDeviceID)
static SDL_AudioDeviceID device
HashMap< UsbDevice, HIDDeviceUSB > mUSBDevices
JNIEXPORT void JNICALL HID_DEVICE_MANAGER_JAVA_INTERFACE() HIDDeviceDisconnected(JNIEnv *env, jobject thiz, int nDeviceID)
JNIEXPORT void JNICALL HID_DEVICE_MANAGER_JAVA_INTERFACE() HIDDeviceOpenResult(JNIEnv *env, jobject thiz, int nDeviceID, bool bOpened)
HIDDeviceManager(final Context context)
◆ release()
◆ sendFeatureReport()
int org.libsdl.app.HIDDeviceManager.sendFeatureReport |
( |
int |
deviceID, |
|
|
byte [] |
report |
|
) |
| |
|
inline |
Definition at line 617 of file HIDDeviceManager.java.
References device, e, and org.libsdl.app.HIDDeviceManager.getDevice().
619 Log.v(
TAG,
"sendFeatureReport deviceID=" + deviceID +
" length=" + report.length);
622 if (device == null) {
627 return device.sendFeatureReport(report);
628 }
catch (Exception
e) {
629 Log.e(
TAG,
"Got exception: " + Log.getStackTraceString(e));
HIDDevice getDevice(int id)
SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char const char SDL_SCANF_FORMAT_STRING const char return SDL_ThreadFunction const char void return Uint32 return Uint32 SDL_AssertionHandler void SDL_SpinLock SDL_atomic_t int int return SDL_atomic_t return void void void return void return int return SDL_AudioSpec SDL_AudioSpec return int int return return int SDL_RWops int SDL_AudioSpec Uint8 Uint32 * e
static SDL_AudioDeviceID device
JNIEXPORT void JNICALL HID_DEVICE_MANAGER_JAVA_INTERFACE() HIDDeviceDisconnected(JNIEnv *env, jobject thiz, int nDeviceID)
◆ sendOutputReport()
int org.libsdl.app.HIDDeviceManager.sendOutputReport |
( |
int |
deviceID, |
|
|
byte [] |
report |
|
) |
| |
|
inline |
Definition at line 600 of file HIDDeviceManager.java.
References device, e, and org.libsdl.app.HIDDeviceManager.getDevice().
602 Log.v(
TAG,
"sendOutputReport deviceID=" + deviceID +
" length=" + report.length);
605 if (device == null) {
610 return device.sendOutputReport(report);
611 }
catch (Exception
e) {
612 Log.e(
TAG,
"Got exception: " + Log.getStackTraceString(e));
HIDDevice getDevice(int id)
SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char const char SDL_SCANF_FORMAT_STRING const char return SDL_ThreadFunction const char void return Uint32 return Uint32 SDL_AssertionHandler void SDL_SpinLock SDL_atomic_t int int return SDL_atomic_t return void void void return void return int return SDL_AudioSpec SDL_AudioSpec return int int return return int SDL_RWops int SDL_AudioSpec Uint8 Uint32 * e
static SDL_AudioDeviceID device
JNIEXPORT void JNICALL HID_DEVICE_MANAGER_JAVA_INTERFACE() HIDDeviceDisconnected(JNIEnv *env, jobject thiz, int nDeviceID)
◆ setFrozen()
void org.libsdl.app.HIDDeviceManager.setFrozen |
( |
boolean |
frozen | ) |
|
|
inline |
◆ shutdownBluetooth()
void org.libsdl.app.HIDDeviceManager.shutdownBluetooth |
( |
| ) |
|
|
inlineprivate |
Definition at line 426 of file HIDDeviceManager.java.
References e.
Referenced by org.libsdl.app.HIDDeviceManager.close().
429 }
catch (Exception
e) {
SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char const char SDL_SCANF_FORMAT_STRING const char return SDL_ThreadFunction const char void return Uint32 return Uint32 SDL_AssertionHandler void SDL_SpinLock SDL_atomic_t int int return SDL_atomic_t return void void void return void return int return SDL_AudioSpec SDL_AudioSpec return int int return return int SDL_RWops int SDL_AudioSpec Uint8 Uint32 * e
final BroadcastReceiver mBluetoothBroadcast
◆ shutdownUSB()
void org.libsdl.app.HIDDeviceManager.shutdownUSB |
( |
| ) |
|
|
inlineprivate |
Definition at line 236 of file HIDDeviceManager.java.
References e.
Referenced by org.libsdl.app.HIDDeviceManager.close().
239 }
catch (Exception
e) {
SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char int SDL_PRINTF_FORMAT_STRING const char const char SDL_SCANF_FORMAT_STRING const char return SDL_ThreadFunction const char void return Uint32 return Uint32 SDL_AssertionHandler void SDL_SpinLock SDL_atomic_t int int return SDL_atomic_t return void void void return void return int return SDL_AudioSpec SDL_AudioSpec return int int return return int SDL_RWops int SDL_AudioSpec Uint8 Uint32 * e
final BroadcastReceiver mUsbBroadcast
◆ ACTION_USB_PERMISSION
final String org.libsdl.app.HIDDeviceManager.ACTION_USB_PERMISSION = "org.libsdl.app.USB_PERMISSION" |
|
staticprivate |
◆ mBluetoothBroadcast
final BroadcastReceiver org.libsdl.app.HIDDeviceManager.mBluetoothBroadcast |
|
private |
Initial value:= new BroadcastReceiver() {
@Override
public void onReceive(Context
context, Intent intent) {
String action = intent.getAction();
if (action.equals(BluetoothDevice.ACTION_ACL_CONNECTED)) {
BluetoothDevice
device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
Log.d(
TAG,
"Bluetooth device connected: " + device);
}
}
if (action.equals(BluetoothDevice.ACTION_ACL_DISCONNECTED)) {
BluetoothDevice device = intent.getParcelableExtra(BluetoothDevice.EXTRA_DEVICE);
Log.d(
TAG,
"Bluetooth device disconnected: " + device);
}
}
}
Definition at line 80 of file HIDDeviceManager.java.
◆ mBluetoothDevices
HashMap<BluetoothDevice, HIDDeviceBLESteamController> org.libsdl.app.HIDDeviceManager.mBluetoothDevices = new HashMap<BluetoothDevice, HIDDeviceBLESteamController>() |
|
private |
◆ mBluetoothManager
BluetoothManager org.libsdl.app.HIDDeviceManager.mBluetoothManager |
|
private |
◆ mContext
Context org.libsdl.app.HIDDeviceManager.mContext |
|
private |
◆ mDevicesById
HashMap<Integer, HIDDevice> org.libsdl.app.HIDDeviceManager.mDevicesById = new HashMap<Integer, HIDDevice>() |
|
private |
◆ mHandler
Handler org.libsdl.app.HIDDeviceManager.mHandler |
|
private |
◆ mIsChromebook
boolean org.libsdl.app.HIDDeviceManager.mIsChromebook = false |
|
private |
◆ mLastBluetoothDevices
List<BluetoothDevice> org.libsdl.app.HIDDeviceManager.mLastBluetoothDevices |
|
private |
◆ mNextDeviceId
int org.libsdl.app.HIDDeviceManager.mNextDeviceId = 0 |
|
private |
◆ mSharedPreferences
SharedPreferences org.libsdl.app.HIDDeviceManager.mSharedPreferences = null |
|
private |
◆ mUsbBroadcast
final BroadcastReceiver org.libsdl.app.HIDDeviceManager.mUsbBroadcast |
|
private |
Initial value:= new BroadcastReceiver() {
@Override
public void onReceive(Context
context, Intent intent) {
String action = intent.getAction();
if (action.equals(UsbManager.ACTION_USB_DEVICE_ATTACHED)) {
UsbDevice usbDevice = intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);
} else if (action.equals(UsbManager.ACTION_USB_DEVICE_DETACHED)) {
UsbDevice usbDevice = intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);
UsbDevice usbDevice = intent.getParcelableExtra(UsbManager.EXTRA_DEVICE);
}
}
}
Definition at line 63 of file HIDDeviceManager.java.
◆ mUSBDevices
HashMap<UsbDevice, HIDDeviceUSB> org.libsdl.app.HIDDeviceManager.mUSBDevices = new HashMap<UsbDevice, HIDDeviceUSB>() |
|
private |
◆ mUsbManager
UsbManager org.libsdl.app.HIDDeviceManager.mUsbManager |
|
private |
◆ sManager
◆ sManagerRefCount
int org.libsdl.app.HIDDeviceManager.sManagerRefCount = 0 |
|
staticprivate |
◆ TAG
final String org.libsdl.app.HIDDeviceManager.TAG = "hidapi" |
|
staticprivate |
The documentation for this class was generated from the following file: