10.07.2015 Views

HID Usage Tables Document 1.1 - C. Scott Ananian

HID Usage Tables Document 1.1 - C. Scott Ananian

HID Usage Tables Document 1.1 - C. Scott Ananian

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Universal Serial Bus <strong>HID</strong> <strong>Usage</strong> <strong>Tables</strong> 93A.7 Desktop Tablet ExampleThis is the Report descriptor for a typical desktop digitizing tablet. The tablet’s digitizing region is 12inches square, and it reports data in units of .001 inches. It is optionally equipped with any or all of threecordless transducers: a 16-button cursor, a stylus with a tip and a barrel switch, and a stylus with a pressuretransducer.The example digitizer can distinguish between the different cursors, and it sends a report based on the cursorthat last changed state. The ReportID report data entity indicates which cursor is generating the currentreport. The X and Y position data and the In Range bit are in the same field for each report type, but thepressure and button data are different for each transducer, with padding in the report where necessary. Thevanilla stylus and puck transducers generate 6-byte reports, whereas the pressure stylus generates a 7-bytereport.The Report descriptor below is structured as an application collection containing three physical collections,one for each supported cursor. The ReportID items precede each cursor collection, which causes a separate,tagged report to be defined for each cursor. The Push and Pop items are used to save and restore the itemstate that defines the X and Y fields. The Report descriptor takes advantage of the fact that the tablet issquare— that is, the physical and logical ranges of X and Y position are identical.;; Example Digitizer Report Descriptor<strong>Usage</strong> Page(Digitizers),; Application collection<strong>Usage</strong>(Digitizer),Collection(Application),ReportID(1),; 2-Button Stylus<strong>Usage</strong>(Puck),Collection(Physical),<strong>Usage</strong> Page(Generic Desktop),; X and Y Position<strong>Usage</strong>(X), <strong>Usage</strong>(Y),ReportSize(16), ReportCount(2),Logical Minimum(0), Logical Maximum(12000),Physical Minimum(0), Physical Maximum(12),Units(English Linear: Distance),; InchesExponent(0),Push,; Save position item stateInput(Data, Variable, Absolute),<strong>Usage</strong> Page(Digitizers),<strong>Usage</strong>(In Range),; In Range bit, switches<strong>Usage</strong>(Barrel Switch),<strong>Usage</strong>(Tip Switch),Logical Minimum(0), Logical Maximum(1),Physical Minimum(0), Physical Maximum(1),Units(None),Report Size(1), Report Count(3),Input(Variable, Absolute),Report Count(1), Report Size(5),Input(Constant),End Collection,Report ID(2),<strong>Usage</strong>(Stylus),Collection(Physical),Pop,Push,; Padding (5 bits); 16-Button Cursor Tag; Refer to Global items; saved during last Push; Report Count (2)Version <strong>1.1</strong> April 8, 1999

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!