Additional comments

This commit is contained in:
Butterscotch! committed 2025-09-04 01:41:01 -04:00
1 parent baf515791d
commit 9246dd00d3
2 files changed
+6

No files matched your search

@@ -8,6 +8,9 @@ import android.hardware.usb.UsbInterface
import android.hardware.usb.UsbManager
import java.io.Closeable
/**
* A wrapper over Android's [UsbDevice] for HID devices.
*/
class AndroidHIDDevice(hidDevice: UsbDevice, usbManager: UsbManager) : Closeable {
val deviceName = hidDevice.deviceName
@@ -20,6 +20,9 @@ import kotlin.math.cos
import kotlin.math.sin
import kotlin.math.sqrt
/**
* A collection of shared HID functions between OS specific HID implementations.
*/
class HIDCommon {
companion object {
const val HID_TRACKER_RECEIVER_VID = 0x1209