Skip to content

Commit

Permalink
input.conf: bind MBTN_MID to align-to-cursor
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
guidocella committed Nov 23, 2024
1 parent e66e570 commit 1581d81
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions DOCS/man/mpv.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
2 changes: 2 additions & 0 deletions etc/input.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 1581d81

Please sign in to comment.