Lines Matching +full:2 +full:- +full:49

2 # SPDX-License-Identifier: GPL-2.0
3 # -*- coding: utf-8 -*-
23 https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/windows-pen-states
37 def from_evdev(cls, evdev) -> "PenState":
54 raise ValueError("2 tools are not allowed")
58 def apply(self, events) -> "PenState":
91 def valid_transitions(self) -> Tuple["PenState", ...]:
93 for skipping the in-range state, due to historical reasons.
236 def legal_transitions() -> Dict[str, Tuple[PenState, ...]]:
238 we don't have Invert nor Erase bits, so just move in/out-of-range or proximity.
239 … https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/windows-pen-states
242 "in-range": (PenState.PEN_IS_IN_RANGE,),
243 "in-range -> out-of-range": (
247 "in-range -> touch": (PenState.PEN_IS_IN_RANGE, PenState.PEN_IS_IN_CONTACT),
248 "in-range -> touch -> release": (
253 "in-range -> touch -> release -> out-of-range": (
262 def legal_transitions_with_invert() -> Dict[str, Tuple[PenState, ...]]:
266 … https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/windows-pen-states
269 "hover-erasing": (PenState.PEN_IS_IN_RANGE_WITH_ERASING_INTENT,),
270 "hover-erasing -> out-of-range": (
274 "hover-erasing -> erase": (
278 "hover-erasing -> erase -> release": (
283 "hover-erasing -> erase -> release -> out-of-range": (
289 "hover-erasing -> in-range": (
293 "in-range -> hover-erasing": (
300 def tolerated_transitions() -> Dict[str, Tuple[PenState, ...]]:
305 "direct-in-contact": (PenState.PEN_IS_IN_CONTACT,),
306 "direct-in-contact -> out-of-range": (
313 def tolerated_transitions_with_invert() -> Dict[str, Tuple[PenState, ...]]:
317 … https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/windows-pen-states
320 "direct-erase": (PenState.PEN_IS_ERASING,),
321 "direct-erase -> out-of-range": (
328 def broken_transitions() -> Dict[str, Tuple[PenState, ...]]:
335 "in-range -> touch -> erase -> hover-erase": (
341 "in-range -> erase -> hover-erase": (
346 "hover-erase -> erase -> touch -> in-range": (
352 "hover-erase -> touch -> in-range": (
357 "touch -> erase -> touch -> erase": (
374 input_info=(BusType.USB, 1, 2), argument
478 p.y -= 1
485 p.y -= 1
497 we don't have Invert nor Erase bits, so just move in/out-of-range or proximity.
498 … https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/windows-pen-states
529 … https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/windows-pen-states
549 … https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/windows-pen-states
577 { 0, 0, 1 } <- hover
578 { 0, 1, 1 } <- primary button pressed
579 { 0, 1, 1 } <- liftoff
580 { 0, 0, 0 } <- leaves
599 p.y -= 1
620 { 0, 0, 1 } <- hover
621 { 0, 1, 1 } <- primary button pressed
622 { 1, 1, 1 } <- touch-down
623 { 1, 1, 1 } <- still touch, scribble on the screen
624 { 0, 1, 1 } <- liftoff
625 { 0, 0, 0 } <- leaves
649 p.y -= 1
674 # surface, in-range stays to 1, but when
675 # the pen moves in-range gets reverted to 0
702 # return PenDigitizer('uhid test egalax-capacitive_0eef_7224',
70349 26 ff 7f 81 02 09 31 75 10 95 01 55 0d 65 33 35 00 46 37 29 26 ff 7f 81 02 05 0d 09 55 25 08 75…
710 # return PenDigitizer('uhid test egalax-capacitive_0eef_72fa',
718 # return PenDigitizer('uhid test egalax-capacitive_0eef_7336',
726 # return PenDigitizer('uhid test egalax-capacitive_0eef_7337',
734 # return PenDigitizer('uhid test egalax-capacitive_0eef_7349',
73549 26 ff 7f 81 02 09 31 75 10 95 01 55 0d 65 33 35 00 46 37 29 26 ff 7f 81 02 05 0d 09 55 25 08 75…
742 # return PenDigitizer('uhid test egalax-capacitive_0eef_73f4',
7432c 26 ff 7f 81 02 05 0d 09 55 25 08 75 08 95 01 b1 02 c0 c0 05 01 09 01 a1 01 85 01 09 01 a1 00 05…
76849 35 00 26 ff 3f 81 02 c0 a1 02 05 0d 09 42 15 00 25 01 75 01 95 01 81 02 09 32 81 02 95 06 81 03…
77749 35 00 26 ff 3f 81 02 c0 a1 02 05 0d 09 42 15 00 25 01 75 01 95 01 81 02 09 32 81 02 95 06 81 03…
79149 81 02 c0 09 22 a1 02 09 42 15 00 25 01 75 01 95 01 81 02 95 01 81 03 95 01 81 03 25 1f 75 05 09…
8062a 85 2a b1 02 95 3e 09 2b 85 2b b1 02 95 fe 09 2c 85 2c b1 02 96 fe 01 09 2d 85 2d b1 02 95 02 09…
8142a 85 2a b1 02 95 3e 09 2b 85 2b b1 02 95 fe 09 2c 85 2c b1 02 96 fe 01 09 2d 85 2d b1 02 95 02 09…
8222a 85 2a b1 02 95 3e 09 2b 85 2b b1 02 95 fe 09 2c 85 2c b1 02 96 fe 01 09 2d 85 2d b1 02 95 02 09…
8302a 85 2a b1 02 95 3e 09 2b 85 2b b1 02 95 fe 09 2c 85 2c b1 02 96 fe 01 09 2d 85 2d b1 02 95 02 09…
8382a 85 2a b1 02 95 3e 09 2b 85 2b b1 02 95 fe 09 2c 85 2c b1 02 96 fe 01 09 2d 85 2d b1 02 95 02 09…
86149 81 02 09 30 81 02 95 01 05 01 a4 26 cf 0f 75 10 55 0f 65 11 09 30 35 00 46 26 01 95 01 81 02 26…
87049 81 42 55 0e c0 09 22 a1 02 09 42 25 01 75 01 95 01 81 02 25 7f 09 30 75 07 81 42 95 01 75 08 09…