[Mplayer-cvslog] CVS: main/libvo vo_directx.c,1.22,1.23

Joey Parrish CVS joey at mplayerhq.hu
Sun Nov 23 18:00:34 CET 2003


Update of /cvsroot/mplayer/main/libvo
In directory mail:/var/tmp.root/cvs-serv1036

Modified Files:
	vo_directx.c 
Log Message:
send quit command instead of key 'q'.
catch backspace key instead of ctrl key.
keycodes.h says CTRL and BS are the same.
this is not true for windows keycodes.


Index: vo_directx.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_directx.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- vo_directx.c	9 Oct 2003 17:28:16 -0000	1.22
+++ vo_directx.c	23 Nov 2003 16:59:57 -0000	1.23
@@ -741,7 +741,7 @@
 		}
         case WM_CLOSE:
 		{
-			mplayer_put_key('q');
+			mp_input_queue_cmd(mp_input_parse_cmd("quit"));
 			return 0;
 		}
         case WM_WINDOWPOSCHANGED:
@@ -780,8 +780,8 @@
 					{mplayer_put_key(KEY_DOWN);break;} 
 	            case VK_TAB:
 					{mplayer_put_key(KEY_TAB);break;}
-		        case VK_CONTROL:
-					{mplayer_put_key(KEY_CTRL);break;}
+		        case VK_BACK:
+					{mplayer_put_key(KEY_BS);break;}
 		        case VK_DELETE:
 					{mplayer_put_key(KEY_DELETE);break;}
 		        case VK_INSERT:



More information about the MPlayer-cvslog mailing list