Instance Method

getUsage

Returns the element's specific usage value.

Declaration

macOS
virtual UInt32 getUsage(void);
DriverKit
virtual uint32_t getUsage(void);

Return Value

The usage assigned to the element. The meaning of this value depends on the usage page. For a list of usage pages and usage values, see HID Usage Tables.

See Also

Getting an Element's Usage Information

- getUsagePage

Returns the HID usage page associated with the element.