[haiku-bugs] [Haiku] #16647: Problem with HIDReportItem and padding

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Mon, 07 Dec 2020 15:18:55 -0000

#16647: Problem with HIDReportItem and padding
-------------------------+--------------------------
 Reporter:  lt_henry     |       Owner:  mmlr
     Type:  bug          |      Status:  new
 Priority:  normal       |   Milestone:  Unscheduled
Component:  Drivers/USB  |     Version:  R1/beta2
 Keywords:  usb_hid      |  Blocked By:
 Blocking:               |    Platform:  All
-------------------------+--------------------------
 So it seems that some usb keyboards are not working on Haiku because they
 send keystroke reports using a bitmap instead of the more common way of
 using arrays. Perhaps, I should have opened a bug ticket with this...
 Instead, I have ended trying to fix myself, and I almost done, but I am
 blocked by a bug.

 The report descriptor, from what I understand, defines a 8 bit constant
 padding and a 112 bit with current keystroke status. Whenever I press key
 ''A'', with usage 0x04, I get an ''I'', with usage 0x0C, and so on with
 ''B,C,D,...'' So it seems that padding is not being honored.

 **disclaimer:** I am not a usb hid guru and I may have done some wrong
 assumptions
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/16647>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: