From 640f93d0183419c1d7894fa09ef7cafac416ab9f Mon Sep 17 00:00:00 2001 From: joey Date: Sun, 30 Nov 2003 16:36:10 +0000 Subject: runtime 'stay-on-top' functionality git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11543 b3059339-0415-0410-9bf9-f77b7e298cf2 --- input/input.c | 2 ++ input/input.h | 1 + 2 files changed, 3 insertions(+) (limited to 'input') 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 -- cgit v1.2.3