Commit a87a5168 authored by Christophe Massiot's avatar Christophe Massiot

* OS X users can now browse the DVD menus with the arrow keys.

parent e4250156
$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
......
......@@ -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>
......@@ -21,6 +21,10 @@
<array>
<integer>977</integer>
</array>
<key>IBOpenObjects</key>
<array>
<integer>29</integer>
</array>
<key>IBSystem Version</key>
<string>6L60</string>
</dict>
......
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment