Device – HID Device

Usage:

import usb_hid

mouse = usb_hid.devices[0]

mouse.send_report()
class usb_hid.Device

Not currently dynamically supported.

send_report(buf)

Send a HID report.

usage_page

The usage page of the device as an int. Can be thought of a category. (read-only)

usage

The functionality of the device as an int. (read-only)

For example, Keyboard is 0x06 within the generic desktop usage page 0x01. Mouse is 0x02 within the same usage page.