[Mplayer-cvslog] CVS: main/Gui/mplayer mw.h,1.40,1.41

Zoltan Ponekker pontscho at mplayer.dev.hu
Tue Jan 29 17:35:55 CET 2002


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

Modified Files:
	mw.h 
Log Message:
add XF86 multimedia key cucc.

Index: mw.h
===================================================================
RCS file: /cvsroot/mplayer/main/Gui/mplayer/mw.h,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -r1.40 -r1.41
--- mw.h	9 Jan 2002 12:41:58 -0000	1.40
+++ mw.h	29 Jan 2002 16:35:53 -0000	1.41
@@ -583,6 +583,7 @@
 void mplMainKeyHandle( int State,int Type,int Key )
 {
  int msg = evNone;
+ if ( Type != wsKeyPressed ) return;
  switch ( Key )
   {
    case '.':
@@ -612,9 +613,19 @@
    case wsS:         msg=evStop; break;
    case wsp:
    case wsP:         msg=evPlayList; break;
-   default:          if ( Type == wsKeyPressed ) vo_x11_putkey( Key ); return;
+   
+   case wsXF86LowerVolume:  msg=evDecVolume; break;
+   case wsXF86RaiseVolume:  msg=evIncVolume; break;
+   case wsXF86Mute:         msg=evMute; break;
+   case wsXF86Play:         msg=evPlaySwitchToPause; break;
+   case wsXF86Stop:         msg=evStop; break;
+   case wsXF86Prev:         msg=evPrev; break;
+   case wsXF86Next:         msg=evNext; break;
+   case wsXF86Media:        msg=evLoad; break;
+
+   default:          vo_x11_putkey( Key ); return;
   }
- if ( ( msg != evNone )&&( Type == wsKeyPressed ) )
+ if ( msg != evNone )
   {
    mplMsgHandle( msg,0 );
 //   mplMainRender=1;




More information about the MPlayer-cvslog mailing list