Beside wacom example in wdk i couldn’t any resources on making Tablet PC driver. But wacom example doesn’t cover what i’m trying to do.
I’m making a virtual tablet pc so that i can take advantage of windows vista tablet pc features. In my report descriptor I’ve three top level collections (vendor collection, pen collection and Tablet PC System Controls collection).
My problem is after adding Tablet PC System Controls collection, clicking Control Panel -> Hardware and Sound -> Tablet PC Settings -> Set tablet buttons to perform certain tasks tells me “Tablet buttons are not installed on this computer”
I couldn’t find out what I’m doing wrong here. Appreciate any help.
Below is descriptor I’m using for buttons.
0x05, 0x01, // USAGE_PAGE (Generic Desktop)
0x09, 0x09, // USAGE (Tablet PC System Controls)
0xA1, 0x01, // COLLECTION (Application)
0x85, REPORTID_BUTTONS, // REPORT_ID (REPORTID_BUTTONS)
0x05, 0x0D, // USAGE_PAGE (Digitizers)
0x09, 0x39, // USAGE (Tablet Function Keys)
0xA1, 0x00, // COLLECTION (Physical)
0x05, 0x09, // USAGE_PAGE (Buttons)
0x19, 0x01, // USAGE_MINIMUM (Button 1)
0x29, 0x08, // USAGE_MAXIMUM (Button 8)
0x15, 0x00, // LOGICAL_MINIMUM (0)
0x25, 0x01, // LOGICAL_MAXIMUM (1)
0x75, 0x01, // REPORT_SIZE (1)
0x95, 0x08, // REPORT_COUNT (8)
0x81, 0x02, // INPUT (Data,Var,Abs)
0xC0, // END_COLLECTION
0xC0 // END_COLLECTION