- add more hid types - fix -j option - fix descriptor printing with %H Reference: /n/atom/patch/applied/usbkbdebug Date: Wed Apr 9 23:12:19 CES 2014 Signed-off-by: quanstro@quanstro.net --- /sys/src/cmd/usb/kb/hid.h Wed Apr 9 23:10:34 2014 +++ /sys/src/cmd/usb/kb/hid.h Wed Apr 9 23:10:35 2014 @@ -136,7 +136,13 @@ HidCollection = 0xa1, HidTypeUsg = 0x09, + + /* generic desktop page */ HidPtr = 0x01, + HidMouse = 0x02, + HidJoy = 0x04, + HidKeypad = 0x05, + HidKeyboard = 0x06, HidX = 0x30, HidY = 0x31, HidZ = 0x32, --- /sys/src/cmd/usb/kb/main.c Wed Apr 9 23:10:36 2014 +++ /sys/src/cmd/usb/kb/main.c Wed Apr 9 23:10:37 2014 @@ -54,13 +54,15 @@ USED(devid); break; case 'b': - as = seprint(as, ae, " -b"); + case 'j': + as = seprint(as, ae, " -%c", ARGC()); break; default: usage(); }ARGEND; rfork(RFNOTEG); + fmtinstall('H', encodefmt); fmtinstall('U', Ufmt); threadsetgrp(threadid()); if(pena == 0)