docs: document tablet tool pressure range

This commit is contained in:
Jens Peters 2025-07-14 21:50:32 +02:00
parent c093ac47db
commit 650a2e196f
No known key found for this signature in database
2 changed files with 16 additions and 2 deletions

View file

@ -1090,7 +1090,8 @@ Note: To rotate touch events with output rotation, use the libinput
## TABLET TOOL
```
<tabletTool motion="absolute" relativeMotionSensitivity="1" />
<tabletTool motion="absolute" relativeMotionSensitivity="1"
minPressure="0" maxPressure="1" />
```
*<tabletTool motion="">* [absolute|relative]
@ -1105,6 +1106,16 @@ Note: To rotate touch events with output rotation, use the libinput
speed, using a value greater than 1.0 increases the speed of the
cursor. The default is "1.0".
*<tabletTool minPressure="">*
*<tabletTool maxPressure="">*
The pressure range of a tablet tool can be controlled by adjusting
*minPressure* and *maxPressure*. Setting the minimum pressure to
a value greater than zero requires more pressure for the tip
threshold, setting the maximum pressure to a value less than 1.0
requires less pressure for the user before the maximum is reached.
The default is 0 for the minimum pressure and 1.0 for the maximum
pressure.
## LIBINPUT
```

View file

@ -573,8 +573,11 @@
*relativeMotionSensitivity* controls the speed of the cursor. Using
a value lower than 1.0 decreases the speed, using a value greater than
1.0 increases the speed of the cursor.
The pressure range of a tablet tool can be controlled by adjusting
*minPressure* and *maxPressure*.
-->
<tabletTool motion="absolute" relativeMotionSensitivity="1.0" />
<tabletTool motion="absolute"relativeMotionSensitivity="1.0"
minPressure="0" maxPressure="1.0" />
<!--
The *category* attribute is optional and can be set to touch, touchpad,