mirror of
https://github.com/mpv-player/mpv
synced 2025-03-21 18:57:35 +00:00
input: add useful default pointer button bindings
Add two mouse button bindings: 1) left button double click toggles fullscreen 2) right button pauses/unpauses
This commit is contained in:
parent
bdcf4ddf35
commit
17db5cc98f
@ -87,6 +87,13 @@ l tv_step_channel -1
|
||||
n tv_step_norm
|
||||
b tv_step_chanlist
|
||||
|
||||
##
|
||||
## Mouse section
|
||||
##
|
||||
|
||||
MOUSE_BTN0_DBL vo_fullscreen # toggle fullscreen on/off
|
||||
MOUSE_BTN2 pause # toggle pause on/off
|
||||
|
||||
##
|
||||
## Joystick section
|
||||
## WARNING: joystick support has to be explicitly enabled at
|
||||
|
@ -376,6 +376,8 @@ struct mp_key_name modifier_names[] = {
|
||||
|
||||
static const mp_cmd_bind_t def_cmd_binds[] = {
|
||||
|
||||
{ { MOUSE_BTN0_DBL, 0 }, "vo_fullscreen" },
|
||||
{ { MOUSE_BTN2, 0 }, "pause" },
|
||||
{ { MOUSE_BTN3, 0 }, "seek 10" },
|
||||
{ { MOUSE_BTN4, 0 }, "seek -10" },
|
||||
{ { MOUSE_BTN5, 0 }, "volume 1" },
|
||||
|
@ -212,6 +212,8 @@ static const char help_text[]=_(
|
||||
" * or / increase or decrease PCM volume\n"
|
||||
" x or z adjust subtitle delay by +/- 0.1 second\n"
|
||||
" r or t adjust subtitle position up/down, also see -vf expand\n"
|
||||
" double click toggle fullscreen\n"
|
||||
" right click pause (press again to continue)\n"
|
||||
"\n"
|
||||
" * * * SEE THE MAN PAGE FOR DETAILS, FURTHER (ADVANCED) OPTIONS AND KEYS * * *\n"
|
||||
"\n");
|
||||
|
Loading…
Reference in New Issue
Block a user