Lines Matching refs:touchpad

148 	struct input_dev *touchpad;  member
657 struct input_dev *touchpad; in ps_touchpad_create() local
660 touchpad = ps_allocate_input_dev(hdev, "Touchpad"); in ps_touchpad_create()
661 if (IS_ERR(touchpad)) in ps_touchpad_create()
662 return ERR_CAST(touchpad); in ps_touchpad_create()
665 input_set_capability(touchpad, EV_KEY, BTN_LEFT); in ps_touchpad_create()
666 __set_bit(INPUT_PROP_BUTTONPAD, touchpad->propbit); in ps_touchpad_create()
668 input_set_abs_params(touchpad, ABS_MT_POSITION_X, 0, width - 1, 0, 0); in ps_touchpad_create()
669 input_set_abs_params(touchpad, ABS_MT_POSITION_Y, 0, height - 1, 0, 0); in ps_touchpad_create()
671 ret = input_mt_init_slots(touchpad, num_contacts, INPUT_MT_POINTER); in ps_touchpad_create()
675 ret = input_register_device(touchpad); in ps_touchpad_create()
679 return touchpad; in ps_touchpad_create()
1165 input_mt_slot(ds->touchpad, i); in dualsense_parse_report()
1166 input_mt_report_slot_state(ds->touchpad, MT_TOOL_FINGER, active); in dualsense_parse_report()
1172 input_report_abs(ds->touchpad, ABS_MT_POSITION_X, x); in dualsense_parse_report()
1173 input_report_abs(ds->touchpad, ABS_MT_POSITION_Y, y); in dualsense_parse_report()
1176 input_mt_sync_frame(ds->touchpad); in dualsense_parse_report()
1177 input_report_key(ds->touchpad, BTN_LEFT, ds_report->buttons[2] & DS_BUTTONS2_TOUCHPAD); in dualsense_parse_report()
1178 input_sync(ds->touchpad); in dualsense_parse_report()
1411 ds->touchpad = ps_touchpad_create(hdev, DS_TOUCHPAD_WIDTH, DS_TOUCHPAD_HEIGHT, 2); in dualsense_create()
1412 if (IS_ERR(ds->touchpad)) { in dualsense_create()
1413 ret = PTR_ERR(ds->touchpad); in dualsense_create()