Lines Matching refs:item
45 HIDReportItem *item = report.ItemAt(i);
46 if (!item->HasData())
49 switch (item->UsagePage()) {
52 if (item->UsageID() > INT16_MAX)
63 fButtons[fButtonCount - 1] = item;
65 if (fMaxButton < item->UsageID())
66 fMaxButton = item->UsageID();
72 if (item->UsageID() == B_HID_UID_GD_HAT_SWITCH) {
81 fHats[fHatCount - 1] = item;
87 if (item->UsageID() >= B_HID_UID_GD_X
88 && item->UsageID() <= B_HID_UID_GD_WHEEL) {
89 // axis = item->UsageID() - B_HID_UID_GD_X;
90 } else if (item->UsageID() >= B_HID_UID_GD_VX
91 && item->UsageID() <= B_HID_UID_GD_VNO) {
92 // axis = item->UsageID() - B_HID_UID_GD_VX;
104 fAxis[fAxisCount - 1] = item;
157 HIDReportItem *item = inputReport->ItemAt(j);
158 if (item == NULL || !item->HasData())
161 if (item->UsagePage() != B_HID_USAGE_PAGE_GENERIC_DESKTOP)
164 if (item->UsageID() >= B_HID_UID_GD_X
165 && item->UsageID() <= B_HID_UID_GD_RZ) {