From 1581d8158a5cc6caabaae68f964291a3cb06b732 Mon Sep 17 00:00:00 2001 From: Guido Cella Date: Sat, 23 Nov 2024 10:59:45 +0100 Subject: [PATCH] input.conf: bind MBTN_MID to align-to-cursor Also bind MBTN_MID_DBL to allow resetting align and pan with the mouse. Once the dragging deadzone is supported on macOS, cycle pause can be moved to MBTN_LEFT and drag-to-pan can be bound to MBTN_RIGHT. --- DOCS/man/mpv.rst | 6 ++++++ etc/input.conf | 2 ++ 2 files changed, 8 insertions(+) diff --git a/DOCS/man/mpv.rst b/DOCS/man/mpv.rst index 3787bfb855746..6eb5c06acfe83 100644 --- a/DOCS/man/mpv.rst +++ b/DOCS/man/mpv.rst @@ -344,6 +344,12 @@ Left double click Right click Toggle pause on/off. +Middle click + Drag to pan through the whole video. + +Middle double click + Reset pan. + Forward/Back button Skip to next/previous entry in playlist. diff --git a/etc/input.conf b/etc/input.conf index d82216b9f9839..e637d0d35eeab 100644 --- a/etc/input.conf +++ b/etc/input.conf @@ -31,6 +31,8 @@ #MBTN_LEFT ignore # don't do anything #MBTN_LEFT_DBL cycle fullscreen # toggle fullscreen #MBTN_RIGHT cycle pause # toggle pause/playback mode +#MBTN_MID script-binding positioning/align-to-cursor # pan the whole video +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 #MBTN_BACK playlist-prev # skip to the previous file #MBTN_FORWARD playlist-next # skip to the next file