summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--etc/input.conf7
-rw-r--r--input/input.c2
-rw-r--r--mplayer.c2
3 files changed, 11 insertions, 0 deletions
diff --git a/etc/input.conf b/etc/input.conf
index 74373d7ffe..d9c8684996 100644
--- a/etc/input.conf
+++ b/etc/input.conf
@@ -88,6 +88,13 @@ 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
## compiletime with --enable-joystick
diff --git a/input/input.c b/input/input.c
index 567a801ca7..7cb498921e 100644
--- a/input/input.c
+++ b/input/input.c
@@ -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" },
diff --git a/mplayer.c b/mplayer.c
index 0e519d20a6..af26866be9 100644
--- a/mplayer.c
+++ b/mplayer.c
@@ -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");