Home
last modified time | relevance | path

Searched refs:BTN_TOOL_PEN (Results 1 - 25 of 45) sorted by relevance

12

/kernel/linux/linux-6.6/tools/testing/selftests/hid/tests/
H A Dtest_tablet.py27 PEN_IS_IN_RANGE = (False, libevdev.EV_KEY.BTN_TOOL_PEN)
28 PEN_IS_IN_CONTACT = (True, libevdev.EV_KEY.BTN_TOOL_PEN)
42 and not evdev.value[libevdev.EV_KEY.BTN_TOOL_PEN]
46 evdev.value[libevdev.EV_KEY.BTN_TOOL_PEN]
49 tool = libevdev.EV_KEY.BTN_TOOL_PEN
51 evdev.value[libevdev.EV_KEY.BTN_TOOL_PEN]
73 libevdev.InputEvent(libevdev.EV_KEY.BTN_TOOL_PEN),
589 assert libevdev.InputEvent(libevdev.EV_KEY.BTN_TOOL_PEN, 1) in events
611 assert libevdev.InputEvent(libevdev.EV_KEY.BTN_TOOL_PEN, 0) in events
634 assert libevdev.InputEvent(libevdev.EV_KEY.BTN_TOOL_PEN,
[all...]
H A Dbase.py76 libevdev.EV_KEY.BTN_TOOL_PEN,
110 excludes=[libevdev.EV_KEY.BTN_TOOL_PEN, libevdev.EV_KEY.BTN_STYLUS],
124 excludes=[libevdev.EV_KEY.BTN_TOOL_PEN, libevdev.EV_KEY.BTN_STYLUS],
H A Dtest_wacom_generic.py646 libevdev.InputEvent(libevdev.EV_KEY.BTN_TOOL_PEN, 1),
671 libevdev.InputEvent(libevdev.EV_KEY.BTN_TOOL_PEN, 0),
703 libevdev.InputEvent(libevdev.EV_KEY.BTN_TOOL_PEN, 1),
791 libevdev.InputEvent(libevdev.EV_KEY.BTN_TOOL_PEN, 1),
/kernel/linux/linux-5.10/drivers/input/tablet/
H A Dhanwang.c98 BTN_STYLUS, BTN_STYLUS2, BTN_TOOL_PEN, BTN_TOOL_RUBBER,
117 hanwang->current_tool = BTN_TOOL_PEN; in hanwang_parse_packet()
145 hanwang->current_tool = BTN_TOOL_PEN; in hanwang_parse_packet()
146 input_report_key(input_dev, BTN_TOOL_PEN, 1); in hanwang_parse_packet()
193 input_report_key(input_dev, BTN_TOOL_PEN, 1); in hanwang_parse_packet()
H A Dkbtab.c59 input_report_key(dev, BTN_TOOL_PEN, 1); in kbtab_irq()
157 BIT_MASK(BTN_TOOL_PEN) | BIT_MASK(BTN_TOUCH); in kbtab_probe()
H A Dacecad.c66 input_report_key(dev, BTN_TOOL_PEN, prox); in usb_acecad_irq()
180 input_dev->keybit[BIT_WORD(BTN_DIGI)] = BIT_MASK(BTN_TOOL_PEN) | in usb_acecad_probe()
H A Dwacom_serial4.c158 { STYLUS_DEVICE_ID, BTN_TOOL_PEN },
543 set_bit(BTN_TOOL_PEN, input_dev->keybit); in wacom_connect()
H A Dpegasus_notetaker.c162 input_report_key(dev, BTN_TOOL_PEN, 1); in pegasus_parse_packet()
362 __set_bit(BTN_TOOL_PEN, input_dev->keybit); in pegasus_probe()
/kernel/linux/linux-6.6/drivers/input/tablet/
H A Dhanwang.c95 BTN_STYLUS, BTN_STYLUS2, BTN_TOOL_PEN, BTN_TOOL_RUBBER,
114 hanwang->current_tool = BTN_TOOL_PEN; in hanwang_parse_packet()
142 hanwang->current_tool = BTN_TOOL_PEN; in hanwang_parse_packet()
143 input_report_key(input_dev, BTN_TOOL_PEN, 1); in hanwang_parse_packet()
190 input_report_key(input_dev, BTN_TOOL_PEN, 1); in hanwang_parse_packet()
H A Dkbtab.c59 input_report_key(dev, BTN_TOOL_PEN, 1); in kbtab_irq()
157 BIT_MASK(BTN_TOOL_PEN) | BIT_MASK(BTN_TOUCH); in kbtab_probe()
H A Dacecad.c63 input_report_key(dev, BTN_TOOL_PEN, prox); in usb_acecad_irq()
177 input_dev->keybit[BIT_WORD(BTN_DIGI)] = BIT_MASK(BTN_TOOL_PEN) | in usb_acecad_probe()
H A Dwacom_serial4.c158 { STYLUS_DEVICE_ID, BTN_TOOL_PEN },
543 set_bit(BTN_TOOL_PEN, input_dev->keybit); in wacom_connect()
H A Dpegasus_notetaker.c162 input_report_key(dev, BTN_TOOL_PEN, 1); in pegasus_parse_packet()
368 __set_bit(BTN_TOOL_PEN, input_dev->keybit); in pegasus_probe()
/kernel/linux/linux-6.6/drivers/hid/
H A Dhid-letsketch.c117 input_set_capability(input, EV_KEY, BTN_TOOL_PEN); in letsketch_setup_input_tablet()
161 input_report_key(input, BTN_TOOL_PEN, 0); in letsketch_inrange_timeout()
179 input_report_key(input, BTN_TOOL_PEN, 1); in letsketch_raw_event()
H A Dhid-udraw-ps3.c237 input_report_key(udraw->pen_input_dev, BTN_TOOL_PEN, 1); in udraw_raw_event()
243 input_report_key(udraw->pen_input_dev, BTN_TOOL_PEN, 0); in udraw_raw_event()
348 set_bit(BTN_TOOL_PEN, input_dev->keybit); in udraw_setup_pen()
H A Dwacom_wac.c134 wacom->tool[0] = (data[5] & 0x20) ? BTN_TOOL_RUBBER : BTN_TOOL_PEN; in wacom_penpartner_irq()
152 input_report_key(input, BTN_TOOL_PEN, 1); in wacom_penpartner_irq()
191 wacom->tool[0] = BTN_TOOL_PEN; in wacom_pl_irq()
204 wacom->tool[0] = BTN_TOOL_PEN; in wacom_pl_irq()
221 input_report_key(input, BTN_STYLUS2, (wacom->tool[0] == BTN_TOOL_PEN) && (data[4] & 0x20)); in wacom_pl_irq()
247 input_report_key(input, BTN_TOOL_PEN, data[1] & 0x20); in wacom_ptu_irq()
271 wacom->tool[0] = (data[1] & 0x0c) ? BTN_TOOL_RUBBER : BTN_TOOL_PEN; in wacom_dtu_irq()
272 if (wacom->tool[0] == BTN_TOOL_PEN) in wacom_dtu_irq()
319 wacom->tool[0] = BTN_TOOL_PEN; in wacom_dtus_irq()
371 wacom->tool[0] = BTN_TOOL_PEN; in wacom_graphire_irq()
[all...]
/kernel/linux/linux-5.10/drivers/input/touchscreen/
H A Dwacom_w8001.c179 if (w8001->type != BTN_TOOL_PEN && in parse_multi_touch()
237 w8001->type = BTN_TOOL_PEN; in report_pen_events()
243 w8001->type = coord->f2 ? BTN_TOOL_RUBBER : BTN_TOOL_PEN; in report_pen_events()
305 if (w8001->type != BTN_TOOL_PEN && in w8001_interrupt()
437 __set_bit(BTN_TOOL_PEN, dev->keybit); in w8001_setup_pen()
H A Dsurface3_spi.c130 int tool = (prox && rubber) ? BTN_TOOL_RUBBER : BTN_TOOL_PEN; in surface3_spi_report_pen()
298 data->pen_tool = BTN_TOOL_PEN; in surface3_spi_create_pen_input()
309 input_set_capability(input, EV_KEY, BTN_TOOL_PEN); in surface3_spi_create_pen_input()
H A Dwacom_i2c.c112 BTN_TOOL_RUBBER : BTN_TOOL_PEN; in wacom_i2c_irq()
184 __set_bit(BTN_TOOL_PEN, input->keybit); in wacom_i2c_probe()
/kernel/linux/linux-6.6/drivers/input/touchscreen/
H A Dwacom_w8001.c179 if (w8001->type != BTN_TOOL_PEN && in parse_multi_touch()
237 w8001->type = BTN_TOOL_PEN; in report_pen_events()
243 w8001->type = coord->f2 ? BTN_TOOL_RUBBER : BTN_TOOL_PEN; in report_pen_events()
305 if (w8001->type != BTN_TOOL_PEN && in w8001_interrupt()
437 __set_bit(BTN_TOOL_PEN, dev->keybit); in w8001_setup_pen()
H A Dwacom_i2c.c130 BTN_TOOL_RUBBER : BTN_TOOL_PEN; in wacom_i2c_irq()
203 __set_bit(BTN_TOOL_PEN, input->keybit); in wacom_i2c_probe()
H A Dsurface3_spi.c128 int tool = (prox && rubber) ? BTN_TOOL_RUBBER : BTN_TOOL_PEN; in surface3_spi_report_pen()
289 data->pen_tool = BTN_TOOL_PEN; in surface3_spi_create_pen_input()
300 input_set_capability(input, EV_KEY, BTN_TOOL_PEN); in surface3_spi_create_pen_input()
H A Dsilead.c174 input_set_capability(data->pen_input, EV_KEY, BTN_TOOL_PEN); in silead_ts_request_pen_input_dev()
237 input_report_key(data->pen_input, BTN_TOOL_PEN, data->pen_down); in silead_ts_handle_pen_data()
/kernel/linux/linux-5.10/drivers/hid/
H A Dhid-udraw-ps3.c237 input_report_key(udraw->pen_input_dev, BTN_TOOL_PEN, 1); in udraw_raw_event()
243 input_report_key(udraw->pen_input_dev, BTN_TOOL_PEN, 0); in udraw_raw_event()
348 set_bit(BTN_TOOL_PEN, input_dev->keybit); in udraw_setup_pen()
H A Dwacom_wac.c134 wacom->tool[0] = (data[5] & 0x20) ? BTN_TOOL_RUBBER : BTN_TOOL_PEN; in wacom_penpartner_irq()
152 input_report_key(input, BTN_TOOL_PEN, 1); in wacom_penpartner_irq()
191 wacom->tool[0] = BTN_TOOL_PEN; in wacom_pl_irq()
204 wacom->tool[0] = BTN_TOOL_PEN; in wacom_pl_irq()
221 input_report_key(input, BTN_STYLUS2, (wacom->tool[0] == BTN_TOOL_PEN) && (data[4] & 0x20)); in wacom_pl_irq()
247 input_report_key(input, BTN_TOOL_PEN, data[1] & 0x20); in wacom_ptu_irq()
271 wacom->tool[0] = (data[1] & 0x0c) ? BTN_TOOL_RUBBER : BTN_TOOL_PEN; in wacom_dtu_irq()
272 if (wacom->tool[0] == BTN_TOOL_PEN) in wacom_dtu_irq()
319 wacom->tool[0] = BTN_TOOL_PEN; in wacom_dtus_irq()
371 wacom->tool[0] = BTN_TOOL_PEN; in wacom_graphire_irq()
[all...]

Completed in 22 milliseconds

12