Lines Matching refs:touchpad
150 struct input_dev *touchpad;
363 struct input_dev *touchpad;
509 * Note: for device with a touchpad, touchpad button is not included
510 * as it will be part of the touchpad device.
889 struct input_dev *touchpad;
892 touchpad = ps_allocate_input_dev(hdev, "Touchpad");
893 if (IS_ERR(touchpad))
894 return ERR_CAST(touchpad);
896 /* Map button underneath touchpad to BTN_LEFT. */
897 input_set_capability(touchpad, EV_KEY, BTN_LEFT);
898 __set_bit(INPUT_PROP_BUTTONPAD, touchpad->propbit);
900 input_set_abs_params(touchpad, ABS_MT_POSITION_X, 0, width - 1, 0, 0);
901 input_set_abs_params(touchpad, ABS_MT_POSITION_Y, 0, height - 1, 0, 0);
903 ret = input_mt_init_slots(touchpad, num_contacts, INPUT_MT_POINTER);
907 ret = input_register_device(touchpad);
911 return touchpad;
1431 input_mt_slot(ds->touchpad, i);
1432 input_mt_report_slot_state(ds->touchpad, MT_TOOL_FINGER, active);
1438 input_report_abs(ds->touchpad, ABS_MT_POSITION_X, x);
1439 input_report_abs(ds->touchpad, ABS_MT_POSITION_Y, y);
1442 input_mt_sync_frame(ds->touchpad);
1443 input_report_key(ds->touchpad, BTN_LEFT, ds_report->buttons[2] & DS_BUTTONS2_TOUCHPAD);
1444 input_sync(ds->touchpad);
1677 ds->touchpad = ps_touchpad_create(hdev, DS_TOUCHPAD_WIDTH, DS_TOUCHPAD_HEIGHT, 2);
1678 if (IS_ERR(ds->touchpad)) {
1679 ret = PTR_ERR(ds->touchpad);
2289 input_mt_slot(ds4->touchpad, j);
2290 input_mt_report_slot_state(ds4->touchpad, MT_TOOL_FINGER, active);
2296 input_report_abs(ds4->touchpad, ABS_MT_POSITION_X, x);
2297 input_report_abs(ds4->touchpad, ABS_MT_POSITION_Y, y);
2300 input_mt_sync_frame(ds4->touchpad);
2301 input_sync(ds4->touchpad);
2303 input_report_key(ds4->touchpad, BTN_LEFT, ds4_report->buttons[2] & DS_BUTTONS2_TOUCHPAD);
2583 ds4->touchpad = ps_touchpad_create(hdev, DS4_TOUCHPAD_WIDTH, DS4_TOUCHPAD_HEIGHT, 2);
2584 if (IS_ERR(ds4->touchpad)) {
2585 ret = PTR_ERR(ds4->touchpad);