Lines 752-758
hmt_hid_parse(struct hmt_softc *sc, const void *d_ptr, hid_size_t d_len,
Link Here
|
752 |
sc->int_btn_loc = hi.loc; |
752 |
sc->int_btn_loc = hi.loc; |
753 |
break; |
753 |
break; |
754 |
} |
754 |
} |
755 |
if (hi.collevel == 1 && |
755 |
if (hi.collevel == 2 && |
756 |
hi.usage >= HID_USAGE2(HUP_BUTTON, left_btn) && |
756 |
hi.usage >= HID_USAGE2(HUP_BUTTON, left_btn) && |
757 |
hi.usage <= HID_USAGE2(HUP_BUTTON, HMT_BTN_MAX)) { |
757 |
hi.usage <= HID_USAGE2(HUP_BUTTON, HMT_BTN_MAX)) { |
758 |
btn = (hi.usage & 0xFFFF) - left_btn; |
758 |
btn = (hi.usage & 0xFFFF) - left_btn; |