Ticket #3077: usb_hid_debug.diff

File usb_hid_debug.diff, 807 bytes (added by mmlr, 11 years ago)
  • src/add-ons/kernel/drivers/input/usb_hid/KeyboardDevice.cpp

     
    319319            _WriteKey(sModifierTable[i], (fTransferBuffer[0] >> i) & 1);
    320320    }
    321321
     322    dprintf("usb_hid: time: %lld\n", system_time());
     323    dprintf("usb_hid: last:   ");
     324    for (int32 i = 0; i < fTotalReportSize; i++)
     325        dprintf(" 0x%02x", fLastTransferBuffer[i]);
     326    dprintf("\nusb_hid: current:");
     327    for (int32 i = 0; i < fTotalReportSize; i++)
     328        dprintf(" 0x%02x", fTransferBuffer[i]);
     329    dprintf("\n");
     330
    322331    bool keyDown = false;
    323332    uint8 *current = fLastTransferBuffer;
    324333    uint8 *compare = fTransferBuffer;