Mercurial > mplayer.hg
changeset 16323:60c6693b2b2b
add key_down_eventto slave mode, used to inject key down event with mplayer_put_key
author | nplourde |
---|---|
date | Wed, 31 Aug 2005 02:15:03 +0000 |
parents | 9cb2b9b6a9b7 |
children | 9d92b0998fea |
files | input/input.c input/input.h mplayer.c |
diffstat | 3 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/input/input.c Tue Aug 30 23:59:21 2005 +0000 +++ b/input/input.c Wed Aug 31 02:15:03 2005 +0000 @@ -141,6 +141,7 @@ { MP_CMD_GET_VO_FULLSCREEN, "get_vo_fullscreen", 0, { {-1,{0}} } }, { MP_CMD_GET_SUB_VISIBILITY, "get_sub_visibility", 0, { {-1,{0}} } }, + { MP_CMD_KEYDOWN_EVENTS, "key_down_event", 1, { {MP_CMD_ARG_INT,{0}}, {-1,{0}} } }, { 0, NULL, 0, {} } };
--- a/input/input.h Tue Aug 30 23:59:21 2005 +0000 +++ b/input/input.h Wed Aug 31 02:15:03 2005 +0000 @@ -67,6 +67,7 @@ #define MP_CMD_GET_TIME_POS 63 #define MP_CMD_SUB_LOAD 64 #define MP_CMD_SUB_REMOVE 65 +#define MP_CMD_KEYDOWN_EVENTS 66 #define MP_CMD_GUI_EVENTS 5000 #define MP_CMD_GUI_LOADFILE 5001
--- a/mplayer.c Tue Aug 30 23:59:21 2005 +0000 +++ b/mplayer.c Wed Aug 31 02:15:03 2005 +0000 @@ -3642,7 +3642,9 @@ } #endif } break; - + case MP_CMD_KEYDOWN_EVENTS : { + mplayer_put_key(cmd->args[0].v.i); + } break; #ifdef USE_DVDNAV case MP_CMD_DVDNAV_EVENT: { dvdnav_priv_t * dvdnav_priv = (dvdnav_priv_t*)(stream->priv);