summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorGrigori Goronzy <greg@blackbox>2011-03-09 13:30:56 +0100
committerUoti Urpala <uau@mplayer2.org>2011-06-14 19:58:55 +0300
commit17db5cc98fcd13d010fb96c3b9ad06a4b4b20194 (patch)
tree491a9bb1d31e1d77303d99a747d71753094b1a10 /input
parentbdcf4ddf35801e73bb4eed985eee0cb084840e23 (diff)
downloadmpv-17db5cc98fcd13d010fb96c3b9ad06a4b4b20194.tar.bz2
mpv-17db5cc98fcd13d010fb96c3b9ad06a4b4b20194.tar.xz
input: add useful default pointer button bindings
Add two mouse button bindings: 1) left button double click toggles fullscreen 2) right button pauses/unpauses
Diffstat (limited to 'input')
-rw-r--r--input/input.c2
1 files changed, 2 insertions, 0 deletions
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" },