Type Alias usb_ids::HidUsagePage
source · pub type HidUsagePage = UsbIdWithChildren<u8, HidUsage>;
Expand description
Represents a HID usage page in the USB database.
Every HID usage page has a usage page ID, a pretty name, and a list of
associated HidUsage
s.
use usb_ids::{HidUsagePage, FromId};
let hid_usage_page = HidUsagePage::from_id(0x01).unwrap();
assert_eq!(hid_usage_page.name(), "Generic Desktop Controls");
for usage in hid_usage_page.usages() {
println!("usage: {}", usage.name());
}
Aliased Type§
struct HidUsagePage { /* private fields */ }