Lines Matching +full:event +full:- +full:touch

2 # SPDX-License-Identifier: GPL-2.0
3 # -*- coding: utf-8 -*-
86 state is "unchanged" since the previous event.
111 number and tool-type identifier. Values of ``0`` may sometimes be
112 used for the out-of-range condition.
150 range 0 cm - 5 cm) and exact unit comparison (e.g. 1 inch is
151 not within the range 0 cm - 5 cm).
153 phys_size = (field.physical_max - field.physical_min) * 10 ** (field.unit_exp)
173 self.ring = -1
264 def event(self, x, y, pressure, buttons=None, toolid=None, proximity=None): member in BaseTablet
266 Send an input event on the default report ID.
282 Send a heartbeat event on the requested report ID.
290 Send a pad event on the requested report ID.
333 Bare-bones opaque tablet with a minimum of features.
340 not any of Wacom's vendor-defined pages.
387 A pen-only tablet with most basic features you would expect from
389 Uses the Wacom vendor-defined usage page.
446 0x17, 0x00, 0x00, 0x00, 0x80, # . Logical Minimum (-2147483648),
469 Pen interface of a PTH-660 / PTH-860 / PTH-460 tablet.
472 the PTH-460 uses a slightly different descriptor construction (splits
632 Ensure that we get the basic tool/touch/motion events that should
638 uhdev.event(
655 uhdev.event(110, 220, pressure=0),
664 uhdev.event(
677 uhdev.event(130, 240, pressure=0), [], auto_syn=False, strict=True
695 uhdev.event(
712 uhdev.event(100, 200, pressure=0, buttons=Buttons(primary=True)),
720 uhdev.event(100, 200, pressure=0, buttons=Buttons(primary=False)),
728 uhdev.event(100, 200, pressure=0, buttons=Buttons(secondary=True)),
736 uhdev.event(100, 200, pressure=0, buttons=Buttons(secondary=False)),
753 "PTH-660/v145",
754 "PTH-660/v150",
755 "PTH-860/v145",
756 "PTH-860/v150",
757 "PTH-460/v105",
783 uhdev.event(
805 uhdev.event(110, 200, pressure=300),
827 delta = info.maximum - info.minimum + 1
829 value = info.maximum - value
832 value -= delta
877 Make a single touch contact that can move over time.
879 Creates a touch object that has a well-known position in space that
885 return test_multitouch.Touch(contact_id, x, y)
889 Make multiple touch contacts that can move over time.
891 Returns a list of `n` touch objects that are positioned at well-known
911 assert tracking_id == -1
915 if tracking_id != -1:
931 touch event by most tablets with the exception of a few, that given the
932 confidence bit is set to 1 it should process it as a valid touch to cover
933 the few tablets using contact ID = 0 as a valid touch value.
938 t0 = test_multitouch.Touch(0, 50, 100)
939 r = uhdev.event([t0])
953 r = uhdev.event([t0])
957 assert evdev.slots[slot][libevdev.EV_ABS.ABS_MT_TRACKING_ID] == -1
963 Ensure that the confidence bit being set to false should not result in a touch event.
968 t0 = test_multitouch.Touch(1, 50, 100)
970 r = uhdev.event([t0])
983 Ensure that all confident touches are reported and that all non-
994 r = uhdev.event(touches)
1001 [ self.ContactIds(contact_id = 0, tracking_id = -1, slot_num = None),
1003 self.ContactIds(contact_id = 2, tracking_id = -1, slot_num = None),
1005 self.ContactIds(contact_id = 4, tracking_id = -1, slot_num = None) ])
1012 Given a `timeline` list of touch states to iterate over, verify
1025 r = uhdev.event(touches)
1036 Transition a confident contact to a non-confident contact by
1042 DTH-2452.
1055 [(self.ContactIds(contact_id = 0, tracking_id = -1, slot_num = 0), False, True),
1060 [(self.ContactIds(contact_id = 0, tracking_id = -1, slot_num = 0), False, False),
1065 [(self.ContactIds(contact_id = 0, tracking_id = -1, slot_num = 0), False, False),
1071 Transition a confident contact to a non-confident contact by
1090 [(self.ContactIds(contact_id = 0, tracking_id = -1, slot_num = 0), False, False),
1095 [(self.ContactIds(contact_id = 0, tracking_id = -1, slot_num = 0), False, False),
1100 [(self.ContactIds(contact_id = 0, tracking_id = -1, slot_num = 0), False, False),
1106 Transition a confident contact to a non-confident contact by
1124 [(self.ContactIds(contact_id = 0, tracking_id = -1, slot_num = 0), True, False),
1129 [(self.ContactIds(contact_id = 0, tracking_id = -1, slot_num = 0), False, False),
1134 [(self.ContactIds(contact_id = 0, tracking_id = -1, slot_num = 0), False, False),
1140 Transition a contact that was always non-confident to confident.
1150 [(self.ContactIds(contact_id = 0, tracking_id = -1, slot_num = None), True, False),
1155 [(self.ContactIds(contact_id = 0, tracking_id = -1, slot_num = None), True, False),
1171 Transition a contact from non-confident to confident.
1186 [(self.ContactIds(contact_id = 0, tracking_id = -1, slot_num = 0), True, False),
1196 [(self.ContactIds(contact_id = 0, tracking_id = -1, slot_num = 0), False, True),