@@ -5230,6 +5230,16 @@ <h2>Input</h2>
5230
5230
<tt class="docutils literal"><span class="pre">--input-ar-delay</span></tt> and <tt class="docutils literal"><span class="pre">--input-ar-rate</span></tt> (default: no).
5231
5231
Whether this applies depends on the VO backend and how it handles
5232
5232
keyboard input. Does not apply to terminal input.</dd>
5233
+ <dt><tt class="docutils literal"><span class="pre">--native-touch=<yes|no></span></tt></dt>
5234
+ <dd><p class="first">(Windows only)
5235
+ For platforms which send emulated mouse inputs for touch-unaware clients,
5236
+ such as Windows, use system native touch events, instead of receiving them
5237
+ as emulated mouse events (default: no). This is required for multi-touch
5238
+ support for these platforms.</p>
5239
+ <p class="last">Note that this option has no effect on other platforms: either native touch
5240
+ is not supported by mpv, or the platform does not give an option to receive
5241
+ emulated mouse inputs (so native touch is always enabled, e.g. Wayland).</p>
5242
+ </dd>
5233
5243
<dt><tt class="docutils literal"><span class="pre">--input-ar-delay</span></tt></dt>
5234
5244
<dd>Delay in milliseconds before we start to autorepeat a key (default: 200).
5235
5245
Set it to 0 to disable.</dd>
@@ -5386,6 +5396,12 @@ <h2>Input</h2>
5386
5396
disabled by default in libmpv as well - it should be enabled if you want
5387
5397
the mpv default key bindings.</p>
5388
5398
</dd>
5399
+ <dt><tt class="docutils literal"><span class="pre">--input-touch-emulate-mouse=<yes|no></span></tt></dt>
5400
+ <dd>When multi-touch support is enabled (either required by the platform,
5401
+ or enabled by <tt class="docutils literal"><span class="pre">--native-touch</span></tt>), emulate mouse move and button presses
5402
+ for the touch events (default: yes). This is useful for compatibility
5403
+ for mouse key bindings and scripts which read mouse positions for platforms
5404
+ which do not support <tt class="docutils literal"><span class="pre">--native-touch=no</span></tt> (e.g. Wayland).</dd>
5389
5405
</dl>
5390
5406
</div>
5391
5407
<div class="section" id="osd">
@@ -13018,7 +13034,7 @@ <h2>Property list</h2>
13018
13034
<dd>Read-only - mpv's window id. May not always be available, i.e due to window
13019
13035
not being opened yet or not being supported by the VO.</dd>
13020
13036
<dt><tt class="docutils literal"><span class="pre">mouse-pos</span></tt></dt>
13021
- <dd><p class="first">Read-only - last known mouse position, normalizd to OSD dimensions.</p>
13037
+ <dd><p class="first">Read-only - last known mouse position, normalized to OSD dimensions.</p>
13022
13038
<p>Has the following sub-properties (which can be read as <tt class="docutils literal">MPV_FORMAT_NODE</tt>
13023
13039
or Lua table with <tt class="docutils literal">mp.get_property_native</tt>):</p>
13024
13040
<dl class="last docutils">
@@ -13030,6 +13046,31 @@ <h2>Property list</h2>
13030
13046
video backends update them only when the pointer hovers the window.</dd>
13031
13047
</dl>
13032
13048
</dd>
13049
+ <dt><tt class="docutils literal"><span class="pre">touch-pos</span></tt></dt>
13050
+ <dd><p class="first">Read-only - last known touch point positions, normalized to OSD dimensions.</p>
13051
+ <p>This has a number of sub-properties. Replace <tt class="docutils literal">N</tt> with the 0-based touch
13052
+ point index. Whenever a new finger touches the screen, a new touch point is
13053
+ added to the list of touch points with the smallest unused <tt class="docutils literal">N</tt> available.</p>
13054
+ <dl class="docutils">
13055
+ <dt><tt class="docutils literal"><span class="pre">touch-pos/count</span></tt></dt>
13056
+ <dd>Number of active touch points.</dd>
13057
+ <dt><tt class="docutils literal"><span class="pre">touch-pos/N/x</span></tt>, <tt class="docutils literal"><span class="pre">touch-pos/N/y</span></tt></dt>
13058
+ <dd>Position of the Nth touch point.</dd>
13059
+ <dt><tt class="docutils literal"><span class="pre">touch-pos/N/id</span></tt></dt>
13060
+ <dd>Unique identifier of the touch point. This can be used to identify
13061
+ individual touch points when their indexes change.</dd>
13062
+ </dl>
13063
+ <p>When querying the property with the client API using <tt class="docutils literal">MPV_FORMAT_NODE</tt>,
13064
+ or with Lua <tt class="docutils literal">mp.get_property_native</tt>, this will return a mpv_node with
13065
+ the following contents:</p>
13066
+ <pre class="last literal-block">
13067
+ MPV_FORMAT_NODE_ARRAY
13068
+ MPV_FORMAT_NODE_MAP (for each touch point)
13069
+ "x" MPV_FORMAT_INT64
13070
+ "y" MPV_FORMAT_INT64
13071
+ "id" MPV_FORMAT_INT64
13072
+ </pre>
13073
+ </dd>
13033
13074
<dt><tt class="docutils literal"><span class="pre">sub-ass-extradata</span></tt></dt>
13034
13075
<dd>The current ASS subtitle track's extradata. There is no formatting done.
13035
13076
The extradata is returned as a string as-is. This property is not
@@ -14414,6 +14455,47 @@ <h3>Configurable Options</h3>
14414
14455
<p class="last">Use a Unicode minus sign instead of an ASCII hyphen when displaying
14415
14456
the remaining playback time.</p>
14416
14457
</dd>
14458
+ <dt><tt class="docutils literal">background_color</tt></dt>
14459
+ <dd><p class="first">Default: #000000</p>
14460
+ <p class="last">Sets the background color of the OSC.</p>
14461
+ </dd>
14462
+ <dt><tt class="docutils literal">timecode_color</tt></dt>
14463
+ <dd><p class="first">Default: #FFFFFF</p>
14464
+ <p class="last">Sets the color of the timecode and seekbar, of the OSC.</p>
14465
+ </dd>
14466
+ <dt><tt class="docutils literal">title_color</tt></dt>
14467
+ <dd><p class="first">Default: #FFFFFF</p>
14468
+ <p class="last">Sets the color of the video title. Formatted as #RRGGBB.</p>
14469
+ </dd>
14470
+ <dt><tt class="docutils literal">time_pos_color</tt></dt>
14471
+ <dd><p class="first">Default: #FFFFFF</p>
14472
+ <p class="last">Sets the color of the timecode at hover position in the seekbar.</p>
14473
+ </dd>
14474
+ <dt><tt class="docutils literal">time_pos_outline_color</tt></dt>
14475
+ <dd><p class="first">Default: #FFFFFF</p>
14476
+ <p class="last">Sets the color of the timecode's outline at hover position in the seekbar.
14477
+ Also affects the timecode in the slimbox layout.</p>
14478
+ </dd>
14479
+ <dt><tt class="docutils literal">buttons_color</tt></dt>
14480
+ <dd><p class="first">Default: #FFFFFF</p>
14481
+ <p class="last">Sets the colors of the big buttons.</p>
14482
+ </dd>
14483
+ <dt><tt class="docutils literal">top_buttons_color</tt></dt>
14484
+ <dd><p class="first">Default: #FFFFFF</p>
14485
+ <p class="last">Sets the colors of the top buttons.</p>
14486
+ </dd>
14487
+ <dt><tt class="docutils literal">small_buttonsL_color</tt></dt>
14488
+ <dd><p class="first">Default: #FFFFFF</p>
14489
+ <p class="last">Sets the colors of the small buttons on the left in the box layout.</p>
14490
+ </dd>
14491
+ <dt><tt class="docutils literal">small_buttonsR_color</tt></dt>
14492
+ <dd><p class="first">Default: #FFFFFF</p>
14493
+ <p class="last">Sets the colors of the small buttons on the right in the box layout.</p>
14494
+ </dd>
14495
+ <dt><tt class="docutils literal">held_element_color</tt></dt>
14496
+ <dd><p class="first">Default: #999999</p>
14497
+ <p class="last">Sets the colors of the elements that are being pressed or held down.</p>
14498
+ </dd>
14417
14499
</dl>
14418
14500
</div>
14419
14501
<div class="section" id="script-commands">
0 commit comments