Lines Matching +full:c +full:- +full:22
2 # SPDX-License-Identifier: GPL-2.0
3 # -*- coding: utf-8 -*-
5 # Copyright (c) 2021 Benjamin Tissoires <benjamin.tissoires@gmail.com>
6 # Copyright (c) 2021 Red Hat, Inc.
23 https://docs.microsoft.com/en-us/windows-hardware/design/component-guidelines/windows-pen-states
37 def from_evdev(cls, evdev) -> "PenState":
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": (
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',
703 …22 a1 00 09 42 15 00 25 01 75 01 95 01 81 02 09 32 15 00 25 01 81 02 09 51 75 05 95 01 16 00 00 26…
710 # return PenDigitizer('uhid test egalax-capacitive_0eef_72fa',
711 …22 a1 00 09 42 15 00 25 01 75 01 95 01 81 02 09 32 15 00 25 01 81 02 09 51 75 05 95 01 16 00 00 26…
718 # return PenDigitizer('uhid test egalax-capacitive_0eef_7336',
719 …22 a1 00 09 42 15 00 25 01 75 01 95 01 81 02 09 32 15 00 25 01 81 02 09 51 75 05 95 01 16 00 00 26…
726 # return PenDigitizer('uhid test egalax-capacitive_0eef_7337',
727 …22 a1 00 09 42 15 00 25 01 75 01 95 01 81 02 09 32 15 00 25 01 81 02 09 51 75 05 95 01 16 00 00 26…
734 # return PenDigitizer('uhid test egalax-capacitive_0eef_7349',
735 …22 a1 00 09 42 15 00 25 01 75 01 95 01 81 02 09 32 15 00 25 01 81 02 09 51 75 05 95 01 16 00 00 26…
742 # return PenDigitizer('uhid test egalax-capacitive_0eef_73f4',
743 …22 a1 00 09 42 15 00 25 01 75 01 95 01 81 02 09 32 15 00 25 01 81 02 09 51 75 05 95 01 16 00 00 26…
751 …30 09 31 15 00 26 ff 7f 75 10 95 02 81 02 c0 c0 05 0d 09 04 a1 01 85 30 09 22 a1 02 09 42 15 00 25…
759 …rdesc="05 0d 09 04 a1 01 85 01 09 22 a1 02 09 42 15 00 25 01 75 01 95 01 81 02 09 32 81 02 95 06 8…
768 …rdesc="05 0d 09 04 a1 01 85 01 09 22 a1 02 09 42 15 00 25 01 75 01 95 01 81 02 09 32 81 02 95 06 8…
777 …rdesc="05 0d 09 04 a1 01 85 01 09 22 a1 02 09 42 15 00 25 01 75 01 95 01 81 02 09 32 81 02 95 06 8…
791 …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 51 81 02 05 01…
798 …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 51 81 02 05 01…
806 …c 85 2c b1 02 96 fe 01 09 2d 85 2d b1 02 95 02 09 48 85 48 b1 02 95 0f 09 2e 85 2e 81 02 95 1f 09 …
814 …c 85 2c b1 02 96 fe 01 09 2d 85 2d b1 02 95 02 09 48 85 48 b1 02 95 0f 09 2e 85 2e 81 02 95 1f 09 …
822 …c 85 2c b1 02 96 fe 01 09 2d 85 2d b1 02 95 02 09 48 85 48 b1 02 95 0f 09 2e 85 2e 81 02 95 1f 09 …
830 …c 85 2c b1 02 96 fe 01 09 2d 85 2d b1 02 95 02 09 48 85 48 b1 02 95 0f 09 2e 85 2e 81 02 95 1f 09 …
838 …c 85 2c b1 02 96 fe 01 09 2d 85 2d b1 02 95 02 09 48 85 48 b1 02 95 0f 09 2e 85 2e 81 02 95 1f 09 …
846 …22 a1 02 55 0e 65 11 35 00 15 00 09 42 25 01 75 01 95 01 81 02 95 07 81 01 95 01 75 08 09 51 81 02…
861 …22 a1 02 09 42 15 00 25 01 75 01 95 01 81 02 75 01 81 03 75 06 09 51 25 3f 81 02 26 ff 00 75 08 55…
870 …22 a1 02 55 0e 65 11 35 00 15 00 09 42 25 01 75 01 95 01 81 02 25 7f 09 30 75 07 81 42 95 01 75 08…