cvs commit: src/sys/dev/usb hid.c

Kai Wang kaiw at FreeBSD.org
Mon Aug 18 16:48:56 UTC 2008


kaiw        2008-08-18 16:48:53 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/usb          hid.c 
  Log:
  SVN rev 181841 on 2008-08-18 16:48:53Z by kaiw
  
  In the hid parser, if a INPUT/OUTPUT/FEATURE item is skipped, its
  corresponding USAGE should be skipped as well.
  
  For example, below is a report desc fragment of some mouse:
  
  COLLECTION
  ...
  USAGE TWHEEL
  FEATURE ...
  ...
  USAGE WHEEL
  INPUT ...
  ...
  END COLLECTION
  
  "USAGE TWHEEL" should be consumed after the FEATURE item is skipped,
  otherwise, the INPUT item will be assigned to "USAGE TWHEEL" later,
  other than "USAGE WHEEL".
  
  Tested by:        Grzegorz Blach
  PR:               usb/125941
  
  Revision  Changes    Path
  1.30      +12 -3     src/sys/dev/usb/hid.c


More information about the cvs-src mailing list