summaryrefslogtreecommitdiffstats
path: root/input
diff options
context:
space:
mode:
authorjoey <joey@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-11-30 16:36:10 +0000
committerjoey <joey@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-11-30 16:36:10 +0000
commit640f93d0183419c1d7894fa09ef7cafac416ab9f (patch)
tree02aebf4bf1fb37c053faaf4a95d41e15cf51c88d /input
parent4daef48770c3d434aa87d4449e864ad733cb194a (diff)
downloadmpv-640f93d0183419c1d7894fa09ef7cafac416ab9f.tar.bz2
mpv-640f93d0183419c1d7894fa09ef7cafac416ab9f.tar.xz
runtime 'stay-on-top' functionality
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11543 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'input')
-rw-r--r--input/input.c2
-rw-r--r--input/input.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/input/input.c b/input/input.c
index ce44a1efac..1c873462c4 100644
--- a/input/input.c
+++ b/input/input.c
@@ -98,6 +98,7 @@ static mp_cmd_t mp_cmds[] = {
{ MP_CMD_DVB_SET_CHANNEL, "dvb_set_channel", 1, { { MP_CMD_ARG_INT, {0}}, {-1,{0}} }},
#endif
{ MP_CMD_VO_FULLSCREEN, "vo_fullscreen", 0, { {-1,{0}} } },
+ { MP_CMD_VO_ONTOP, "vo_ontop", 0, { {-1,{0}} } },
{ MP_CMD_SCREENSHOT, "screenshot", 0, { {-1,{0}} } },
{ MP_CMD_PANSCAN, "panscan",1, { {MP_CMD_ARG_FLOAT,{0}}, {MP_CMD_ARG_INT,{0}}, {-1,{0}} } },
{ MP_CMD_LOADFILE, "loadfile", 1, { {MP_CMD_ARG_STRING, {0}}, {-1,{0}} } },
@@ -330,6 +331,7 @@ static mp_cmd_bind_t def_cmd_binds[] = {
{ { JOY_BTN2, 0 }, "volume 1"},
{ { JOY_BTN3, 0 }, "volume -1"},
#endif
+ { { 'T', 0 }, "vo_ontop" },
{ { 'f', 0 }, "vo_fullscreen" },
{ { 's', 0 }, "screenshot" },
{ { 'w', 0 }, "panscan -0.1" },
diff --git a/input/input.h b/input/input.h
index f8c0576b84..563f632730 100644
--- a/input/input.h
+++ b/input/input.h
@@ -52,6 +52,7 @@
#define MP_CMD_GET_VO_FULLSCREEN 48
#define MP_CMD_GET_SUB_VISIBILITY 49
#define MP_CMD_SUB_FORCED_ONLY 50
+#define MP_CMD_VO_ONTOP 51
#define MP_CMD_GUI_EVENTS 5000
#define MP_CMD_GUI_LOADFILE 5001