Mercurial > mplayer.hg
diff gui/interface.c @ 34339:f05c75392897
Enable gui slave commands.
Allow sending the GUI skin messages which enables operating the GUI
with a remote control.
Only messages defined in current skin window will be executed, i.e.
only messages that could result from mouse clicks as well.
author | ib |
---|---|
date | Sun, 11 Dec 2011 14:43:16 +0000 |
parents | e8e4e6f9b7ac |
children | 0ba85cad4c7e |
line wrap: on
line diff
--- a/gui/interface.c Sat Dec 10 20:55:31 2011 +0000 +++ b/gui/interface.c Sun Dec 11 14:43:16 2011 +0000 @@ -323,7 +323,7 @@ dvd_priv_t *dvd; #endif plItem *next; - int state; + int msg, state; if (guiInfo.mpcontext) mixer = mpctx_get_mixer(guiInfo.mpcontext); @@ -382,6 +382,13 @@ break; + case GUI_RUN_MESSAGE: + mp_msg(MSGT_GPLAYER, MSGL_DBG2, "[interface] GUI_RUN_MESSAGE: %s\n", (const char *)data); + msg = appFindMessage((const char *)data); + if (appFindItem(msg)) + uiEventHandling(msg, 0); + break; + case GUI_PREPARE: wsVisibleMouse(&guiApp.subWindow, wsHideMouseCursor);