Skip to content

Commit d8d7aa2

Browse files
author
Benjamin Tissoires
committed
selftests/hid: tablets: do not set invert when the eraser is used
Turns out that the chart from Microsoft is not exactly what I got here: when the rubber is used, and is touching the surface, invert can (should) be set to 0... [0] https://learn.microsoft.com/en-us/windows-hardware/design/component-guidelines/windows-pen-states Reviewed-by: Peter Hutterer <[email protected]> Acked-by: Jiri Kosina <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Benjamin Tissoires <[email protected]>
1 parent 881ccc3 commit d8d7aa2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/hid/tests/test_tablet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ def move_to(self, pen, state):
382382
elif state == PenState.PEN_IS_ERASING:
383383
pen.tipswitch = False
384384
pen.inrange = True
385-
pen.invert = True
385+
pen.invert = False
386386
pen.eraser = True
387387

388388
pen.current_state = state

0 commit comments

Comments
 (0)