Skip to content

Commit

Permalink
chore: doc
Browse files Browse the repository at this point in the history
  • Loading branch information
nytamin committed Jan 11, 2024
1 parent b552fd9 commit 4aac9f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/core/src/xkeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ export class XKeys extends EventEmitter {
static get vendorId(): number {
return XKEYS_VENDOR_ID
}
/**
* Takes a HID device as input. If the HID device is NOT an X-Keys returns null, otherwise some info about it.
*/
static filterDevice(deviceInfo: DeviceInfo): { product: Product; productId: number; interface: number } | null {
if (deviceInfo.vendorId !== XKEYS_VENDOR_ID) return null

Expand Down

0 comments on commit 4aac9f4

Please sign in to comment.