Skip to content

Commit 780ce60

Browse files
committed
input.conf: bind MBTN_MID to align-to-cursor
Also bind MBTN_MID_DBL to allow resetting align and pan with the mouse.
1 parent 318c76f commit 780ce60

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

Diff for: DOCS/man/mpv.rst

+6
Original file line numberDiff line numberDiff line change
@@ -344,6 +344,12 @@ Left double click
344344
Right click
345345
Toggle pause on/off.
346346

347+
Middle click
348+
Drag to pan through the whole video.
349+
350+
Middle double click
351+
Reset pan.
352+
347353
Forward/Back button
348354
Skip to next/previous entry in playlist.
349355

Diff for: etc/input.conf

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
#MBTN_LEFT ignore # don't do anything
3232
#MBTN_LEFT_DBL cycle fullscreen # toggle fullscreen
3333
#MBTN_RIGHT cycle pause # toggle pause/playback mode
34+
#MBTN_MID script-binding positioning/align-to-cursor # pan the whole video
35+
MBTN_MID_DBL no-osd set video-align-x 0; no-osd set video-align-y 0; no-osd set video-pan-x 0; no-osd set video-pan-y 0 # reset pan
3436
#MBTN_BACK playlist-prev # skip to the previous file
3537
#MBTN_FORWARD playlist-next # skip to the next file
3638

0 commit comments

Comments
 (0)