[Mplayer-cvslog] CVS: main/input input.c,1.27,1.28 input.h,1.9,1.10

Arpi of Ize arpi at mplayer.dev.hu
Thu Mar 28 21:40:24 CET 2002


Update of /cvsroot/mplayer/main/input
In directory mplayer:/var/tmp.root/cvs-serv10168

Modified Files:
	input.c input.h 
Log Message:
DVDnav support patch by David Holm and Kees Cook <mplayer at outflux.net>

Index: input.c
===================================================================
RCS file: /cvsroot/mplayer/main/input/input.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -r1.27 -r1.28
--- input.c	20 Mar 2002 13:30:57 -0000	1.27
+++ input.c	28 Mar 2002 20:40:21 -0000	1.28
@@ -75,6 +75,10 @@
   { MP_CMD_GUI_PREFERENCES, "gui_preferences", 0, { {-1,{0}} } },
   { MP_CMD_GUI_SKINBROWSER, "gui_skinbrowser", 0, { {-1,{0}} } },
 #endif
+
+#ifdef USE_DVDNAV
+  { MP_CMD_DVDNAV, "dvdnav", 1, { {MP_CMD_ARG_INT,{0}}, {-1,{0}} } },
+#endif
   
   { 0, NULL, 0, {} }
 };
@@ -159,6 +163,15 @@
   { {  MOUSE_BTN5, 0 }, "volume 1" },
   { {  MOUSE_BTN6, 0 }, "volume -1" },
   
+#ifdef USE_DVDNAV
+  { { 'K', 0 }, "dvdnav 1" },   // up
+  { { 'J', 0 }, "dvdnav 2" },   // down
+  { { 'H', 0 }, "dvdnav 3" },   // left
+  { { 'L', 0 }, "dvdnav 4" },   // right
+  { { 'M', 0 }, "dvdnav 5" },   // menu
+  { { 'S', 0 }, "dvdnav 6" },   // select
+#endif
+
   { { KEY_RIGHT, 0 }, "seek 10" },
   { {  KEY_LEFT, 0 }, "seek -10" },
   { {  KEY_UP, 0 }, "seek 60" },

Index: input.h
===================================================================
RCS file: /cvsroot/mplayer/main/input/input.h,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- input.h	19 Mar 2002 13:29:28 -0000	1.9
+++ input.h	28 Mar 2002 20:40:21 -0000	1.10
@@ -24,6 +24,7 @@
 #define MP_CMD_TV_STEP_CHANNEL_LIST 19
 #define MP_CMD_VO_FULLSCREEN 20
 #define MP_CMD_SUB_POS 21
+#define MP_CMD_DVDNAV 22
 
 #define MP_CMD_GUI_EVENTS       5000
 #define MP_CMD_GUI_LOADFILE     5001
@@ -35,6 +36,13 @@
 #define MP_CMD_GUI_PREFERENCES  5007
 #define MP_CMD_GUI_FULLSCREEN   5008
 #define MP_CMD_GUI_SKINBROWSER  5009
+
+#define MP_CMD_DVDNAV_UP        1
+#define MP_CMD_DVDNAV_DOWN      2
+#define MP_CMD_DVDNAV_LEFT      3
+#define MP_CMD_DVDNAV_RIGHT     4
+#define MP_CMD_DVDNAV_MENU      5
+#define MP_CMD_DVDNAV_SELECT    6
 
 // The args types
 #define MP_CMD_ARG_INT 0




More information about the MPlayer-cvslog mailing list