[Mplayer-cvslog] CVS: main/Gui interface.c,1.3,1.4

Zoltan Ponekker pontscho at mplayer.dev.hu
Mon Feb 25 14:14:29 CET 2002


Update of /cvsroot/mplayer/main/Gui
In directory mplayer:/var/tmp.root/cvs-serv21388/Gui

Modified Files:
	interface.c 
Log Message:
add half new input support for gui

Index: interface.c
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/interface.c,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- interface.c	24 Feb 2002 17:38:33 -0000	1.3
+++ interface.c	25 Feb 2002 13:14:26 -0000	1.4
@@ -13,6 +13,7 @@
 #include "mplayer/mplayer.h"
 #include "app.h"
 #include "../libvo/x11_common.h"
+#include "../input/input.h"
 
 guiInterface_t guiIntfStruct;
 
@@ -30,6 +31,19 @@
  wsXDone();
 }
 
+int guiCMDArray[] =
+ {
+  evLoad,
+  evLoadSubtitle,
+  evAbout,
+  evPlay,
+  evStop,
+  evPlayList,
+  evPreferences,
+  evFullScreen,
+  evSkinBrowser
+ };
+
 void guiGetEvent( int type,char * arg )
 {
  switch ( type )
@@ -40,6 +54,20 @@
         break;
    case guiCEvent:
         break;
+   case guiIEvent:
+        printf( "cmd: %d\n",(int)arg );
+	switch( (int)arg )
+	 {
+          case MP_CMD_QUIT:
+	       mplEventHandling( evExit,0 );
+	       break;
+	  case MP_CMD_VO_FULLSCREEN:
+	       mplEventHandling( evFullScreen,0 );
+	       break;
+          default:
+	       mplEventHandling( guiCMDArray[ (int)arg - MP_CMD_GUI_EVENTS - 1 ],0 );
+	 }
+	break;
   }
 }
 




More information about the MPlayer-cvslog mailing list