Skip to content

Commit f9c441c

Browse files
committed
docs: document tablet input
1 parent 8773393 commit f9c441c

File tree

3 files changed

+22
-0
lines changed

3 files changed

+22
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
add `--input-tablet-emulate-mouse` option

DOCS/man/input.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3058,6 +3058,22 @@ Property list
30583058
"y" MPV_FORMAT_INT64
30593059
"id" MPV_FORMAT_INT64
30603060

3061+
``tablet-pos``
3062+
Read-only - last known tablet tool (pen) position, normalized to OSD dimensions,
3063+
and tool state.
3064+
3065+
Has the following sub-properties:
3066+
3067+
``tablet-pos/x``, ``tablet-pos/y``
3068+
Last known coordinates of the tablet tool.
3069+
``tablet-pos/tool-in-proximity``
3070+
Boolean - whether a tablet tool is currently in proximity of the tablet
3071+
surface / hovers above the tablet surface.
3072+
``tablet-pos/tool-tip``,
3073+
The state of the tablet tool tip, ``up`` or ``down.``
3074+
``tablet-pos/tool-stylus-btn1``, ``tablet-pos/tool-stylus-btn2``, ``tablet-pos/tool-stylus-btn3``
3075+
The state of tablet tool side buttons, ``pressed`` or ``released``.
3076+
30613077
``sub-ass-extradata``
30623078
The current ASS subtitle track's extradata. There is no formatting done.
30633079
The extradata is returned as a string as-is. This property is not

DOCS/man/options.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4526,6 +4526,11 @@ Input
45264526
for mouse key bindings and scripts which read mouse positions for platforms
45274527
which do not support ``--native-touch=no`` (e.g. Wayland).
45284528

4529+
``--input-tablet-emulate-mouse=<yes|no>``
4530+
Emulate mouse move and button presses for tablet events (default: yes).
4531+
4532+
Wayland only.
4533+
45294534
``--input-dragging-deadzone=<N>``
45304535
Begin the built-in window dragging when the mouse moves outside a deadzone of
45314536
``N`` pixels while the mouse button is being held down (default: 3). This only

0 commit comments

Comments
 (0)