changeset 11510:3638adcfdcbd

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.
author joey
date Sun, 23 Nov 2003 16:59:57 +0000
parents e209ca6a0b3e
children 6e580b901205
files libvo/vo_directx.c
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_directx.c	Sun Nov 23 16:53:03 2003 +0000
+++ b/libvo/vo_directx.c	Sun Nov 23 16:59:57 2003 +0000
@@ -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: