Lines Matching refs:BTN_TOOL_PEN
800 case BTN_TOOL_PEN: type = LIBINPUT_TABLET_TOOL_TYPE_PEN; break;
831 case BTN_TOOL_PEN:
1806 * BTN_TOOL_PEN on the very first event, then leave it set even when the pen
1810 * To avoid this, we set a timer on BTN_TOOL_PEN in. We expect the tablet to
1813 * a BTN_TOOL_PEN event into the sequence through the timer func.
1816 * timeout we need to emulate a BTN_TOOL_PEN event again to force proximity
1819 * Other tools never send the BTN_TOOL_PEN event. For those tools, we
1852 /* We need to emulate a BTN_TOOL_PEN if we get an axis event (i.e.
1856 * BTN_TOOL_PEN and the state for the tool was 0, this device will
1883 * - BTN_TOOL_PEN on proximity in, followed by
1886 * - BTN_TOOL_RUBBER on proximity in, but BTN_TOOL_PEN when
1888 * -> We ignore BTN_TOOL_PEN
1918 /* The proximity timeout is only needed for BTN_TOOL_PEN, devices
1924 /* If we get a BTN_TOOL_PEN 0 when *not* injecting
2090 .code = BTN_TOOL_PEN,
2549 has_pen = libevdev_has_event_code(evdev, EV_KEY, BTN_TOOL_PEN);
2584 if (!libevdev_has_event_code(evdev, EV_KEY, BTN_TOOL_PEN)) {
2585 libevdev_enable_event_code(evdev, EV_KEY, BTN_TOOL_PEN, NULL);