mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 05:02:58 +00:00
[HIDPARSE]
- Use report value when report item bitcount > 1 [KBDHID] - Print raw report - KBDHID starts to receive normal keys and modifier keys svn path=/branches/usb-bringup-trunk/; revision=55364
This commit is contained in:
parent
2cc2771f69
commit
205e63a314
3 changed files with 26 additions and 4 deletions
|
@ -455,7 +455,20 @@ HidParser_GetUsagesWithReport(
|
|||
//
|
||||
// store usage and page
|
||||
//
|
||||
UsageAndPage[ItemCount].Usage = (ReportItem->UsageMinimum & 0xFFFF);
|
||||
if (ReportItem->BitCount == 1)
|
||||
{
|
||||
//
|
||||
// use usage minimum
|
||||
//
|
||||
UsageAndPage[ItemCount].Usage =(ReportItem->UsageMinimum & 0xFFFF);
|
||||
}
|
||||
else
|
||||
{
|
||||
//
|
||||
// use value from control
|
||||
//
|
||||
UsageAndPage[ItemCount].Usage = (USHORT)Data;
|
||||
}
|
||||
UsageAndPage[ItemCount].UsagePage = CurrentUsagePage;
|
||||
}
|
||||
ItemCount++;
|
||||
|
@ -691,13 +704,14 @@ HidParser_TranslateUsage(
|
|||
//
|
||||
// invalid lookup or no scan code available
|
||||
//
|
||||
DPRINT1("No Scan code for Usage %x\n", Usage);
|
||||
return HIDPARSER_STATUS_I8042_TRANS_UNKNOWN;
|
||||
}
|
||||
|
||||
//
|
||||
// FIXME: translate modifier states
|
||||
//
|
||||
|
||||
DPRINT1("Usage %x ScanCode %x\n", Usage, ScanCode);
|
||||
HidParser_DispatchKey((PCHAR)&ScanCode, KeyAction, InsertCodesProcedure, InsertCodesContext);
|
||||
|
||||
//
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue