Lines Matching refs:EV_KEY
65 #define map_key(c) hid_map_usage(hidinput, usage, &bit, &max, EV_KEY, (c))
71 &max, EV_KEY, (c))
85 return (usage->type == EV_KEY && usage->code == keycode); in match_keycode()
111 if (usage->type == EV_KEY || usage->type == 0) { in hidinput_find_key()
152 ke->keycode = usage->type == EV_KEY ? in hidinput_getkeycode()
173 *old_keycode = usage->type == EV_KEY ? in hidinput_setkeycode()
673 set_bit(EV_KEY, input->evbit); in hidinput_configure_usage()
1047 if (usage->type == EV_KEY) { in hidinput_configure_usage()
1098 input_event(input, EV_KEY, BTN_TOUCH, value > a + ((b - a) >> 3)); in hidinput_hid_event()
1111 if ((usage->type == EV_KEY) && (usage->code == 0)) /* Key 0 is "unassigned", not KEY_UNKNOWN */ in hidinput_hid_event()
1121 input_event(input, EV_KEY, direction, 1); in hidinput_hid_event()
1123 input_event(input, EV_KEY, direction, 0); in hidinput_hid_event()
1163 if (usage->type == EV_KEY && !!test_bit(usage->code, input->key) != value) in hidinput_hid_event()
1168 if ((field->flags & HID_MAIN_ITEM_RELATIVE) && (usage->type == EV_KEY)) in hidinput_hid_event()