Lines Matching refs:scancode
64 static bool match_scancode(struct hid_usage *usage, unsigned int cur_idx, unsigned int scancode)
66 return (usage->hid & (HID_USAGE_PAGE | HID_USAGE)) == scancode;
117 unsigned int scancode;
121 } else if (input_scancode_to_scalar(ke, &scancode) == 0) {
122 usage = hidinput_find_key(hid, match_scancode, scancode, index);
134 unsigned int scancode, index;
140 scancode = usage->hid & (HID_USAGE_PAGE | HID_USAGE);
141 ke->len = sizeof(scancode);
142 memcpy(ke->scancode, &scancode, sizeof(scancode));
1885 /* report the usage code as scancode if the key status has changed */