Lines Matching refs:code
10 * This code is partly based on hid-egalax.c:
16 * This code is partly based on hid-3m-pct.c:
487 static void set_abs(struct input_dev *input, unsigned int code,
493 input_set_abs_params(input, code, fmin, fmax, fuzz, 0);
494 input_abs_set_res(input, code, hidinput_calc_abs_res(field, code));
692 int code;
717 code = ABS_MT_TOOL_X;
720 code = ABS_MT_POSITION_X;
724 set_abs(hi->input, code, field, cls->sn_move);
742 code = ABS_MT_TOOL_Y;
745 code = ABS_MT_POSITION_Y;
749 set_abs(hi->input, code, field, cls->sn_move);
850 code = BTN_MOUSE + ((usage->hid - 1) & HID_USAGE);
858 code--;
861 code = BTN_0 + ((usage->hid - 1) & HID_USAGE);
863 hid_map_usage(hi, usage, bit, max, EV_KEY, code);
866 input_set_capability(hi->input, EV_KEY, code);
1133 if (usage->type == EV_KEY && usage->code == BTN_LEFT) {
1139 input_event(input, usage->type, usage->code, value);