]> git.sesse.net Git - vlc/commitdiff
* OS X users can now browse the DVD menus with the arrow keys.
authorChristophe Massiot <massiot@videolan.org>
Tue, 3 Jun 2003 23:17:43 +0000 (23:17 +0000)
committerChristophe Massiot <massiot@videolan.org>
Tue, 3 Jun 2003 23:17:43 +0000 (23:17 +0000)
NEWS
extras/MacOSX/Resources/English.lproj/MainMenu.nib/info.nib
extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib
modules/gui/macosx/vout.m

diff --git a/NEWS b/NEWS
index cb2660583888f76ccfccd42f711151d3eab7ebf2..1b9636cb5e6f9005acf5cf0593a679cdb46dc393 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,4 +1,4 @@
-$Id: NEWS,v 1.46 2003/05/27 21:48:44 gbazin Exp $
+$Id: NEWS,v 1.47 2003/06/03 23:17:43 massiot Exp $
 
 Changes between 0.5.3 and 0.6.0:
 ---------------------------------
@@ -52,6 +52,7 @@ Mac OS X port:
  * New audio resampler. Should make VLC much faster.
  * Fixed disappearing and crackling sound (PTS is out of range bug)
  * We no longer automatically save the preferences when you quit the application
+ * Arrow keys are now use to browse the menus in a DVD
 
 Win32 port:
  * the wxWindows interface is now the default interface
index 8b31d8f16808e3ea2567c7010bb5354b6aa941be..ab1db034af5de9a243808beb21f75f6f43f72a79 100644 (file)
@@ -7,7 +7,7 @@
        <key>IBEditorPositions</key>
        <dict>
                <key>29</key>
-               <string>439 740 419 44 0 0 1280 1002 </string>
+               <string>374 542 419 44 0 0 1152 746 </string>
                <key>303</key>
                <string>60 509 104 114 0 0 1280 1002 </string>
                <key>909</key>
        <array>
                <integer>977</integer>
        </array>
+       <key>IBOpenObjects</key>
+       <array>
+               <integer>29</integer>
+       </array>
        <key>IBSystem Version</key>
        <string>6L60</string>
 </dict>
index f0132c853dcb60b79c549c90e398aada3b2fe193..730bd50983855f285b4de64813b7a6e5b7941faf 100644 (file)
Binary files a/extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib and b/extras/MacOSX/Resources/English.lproj/MainMenu.nib/objects.nib differ
index b9ee8dc6998a9207bc8ca06afbfe44c7db028e9e..b1212793e9a7fd365cdc1c6fb1a4d361055730fe 100644 (file)
@@ -2,7 +2,7 @@
  * vout.m: MacOS X video output plugin
  *****************************************************************************
  * Copyright (C) 2001-2003 VideoLAN
- * $Id: vout.m,v 1.49 2003/05/23 00:00:48 hartman Exp $
+ * $Id: vout.m,v 1.50 2003/06/03 23:17:43 massiot Exp $
  *
  * Authors: Colin Delacroix <colin@zoy.org>
  *          Florian G. Pflug <fgp@phlo.org>
@@ -850,6 +850,7 @@ static void QTFreePicture( vout_thread_t *p_vout, picture_t *p_pic )
 - (void)keyDown:(NSEvent *)o_event
 {
     unichar key = 0;
+    vlc_value_t val;
 
     if( [[o_event characters] length] )
     {
@@ -877,6 +878,33 @@ static void QTFreePicture( vout_thread_t *p_vout, picture_t *p_pic )
             input_SetStatus( p_vout, INPUT_STATUS_PAUSE );
             break;
 
+        case (unichar)0xf700: /* arrow up */
+            val.psz_string = "UP";
+            var_Set( p_vout, "key-pressed", val );
+            break;
+
+        case (unichar)0xf701: /* arrow down */
+            val.psz_string = "DOWN";
+            var_Set( p_vout, "key-pressed", val );
+            break;
+
+        case (unichar)0xf702: /* arrow left */
+            val.psz_string = "LEFT";
+            var_Set( p_vout, "key-pressed", val );
+            break;
+
+        case (unichar)0xf703: /* arrow right */
+            val.psz_string = "RIGHT";
+            var_Set( p_vout, "key-pressed", val );
+            break;
+
+        case (unichar)0xd: /* return */
+        case (unichar)0x3: /* enter */
+            val.psz_string = "ENTER";
+            var_Set( p_vout, "key-pressed", val );
+            break;
+
+
         default:
             [super keyDown: o_event];
             break;