From b872f146e1376187bf19a65b584412ffd0e40560 Mon Sep 17 00:00:00 2001 From: nplourde Date: Wed, 31 Aug 2005 02:15:03 +0000 Subject: add key_down_eventto slave mode, used to inject key down event with mplayer_put_key git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16324 b3059339-0415-0410-9bf9-f77b7e298cf2 --- input/input.c | 1 + input/input.h | 1 + 2 files changed, 2 insertions(+) (limited to 'input') diff --git a/input/input.c b/input/input.c index ea667e4794..e37decaeca 100644 --- a/input/input.c +++ b/input/input.c @@ -141,6 +141,7 @@ static mp_cmd_t mp_cmds[] = { { 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, {} } }; diff --git a/input/input.h b/input/input.h index a4751e788b..60c70a6ca1 100644 --- a/input/input.h +++ b/input/input.h @@ -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 -- cgit v1.2.3