Commit a2e5e656 authored by Olivier Teulière's avatar Olivier Teulière

* The space bar is a hotkey for pause/resume.

parent 553f1be2
......@@ -741,3 +741,4 @@ void __fastcall TMainFrameDlg::CreatePreferences( AnsiString Name )
}
//---------------------------------------------------------------------------
......@@ -2558,6 +2558,7 @@ object MainFrameDlg: TMainFrameDlg
Enabled = False
Hint = 'Pause stream'
ImageIndex = 6
ShortCut = 32
OnExecute = PauseActionExecute
end
object StopAction: TAction
......@@ -2663,7 +2664,7 @@ object MainFrameDlg: TMainFrameDlg
Category = 'Menu'
Caption = 'Messages...'
Hint = 'Open the messages window'
ShortCut = 16461
ShortCut = 16460
OnExecute = MessagesActionExecute
end
object AboutAction: TAction
......@@ -2722,6 +2723,7 @@ object MainFrameDlg: TMainFrameDlg
Category = 'Control'
Caption = '&Mute'
Hint = 'Toggle mute'
ShortCut = 16461
OnExecute = MuteActionExecute
end
object OnTopAction: TAction
......
......@@ -2,7 +2,7 @@
* events.c: Windows DirectX video output events handler
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: events.c,v 1.9 2003/01/26 02:22:59 ipkiss Exp $
* $Id: events.c,v 1.10 2003/01/27 01:42:19 ipkiss Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
......@@ -32,6 +32,7 @@
#include <vlc/vlc.h>
#include <vlc/intf.h>
#include <vlc/input.h>
#include <vlc/vout.h>
#include "netutils.h"
......@@ -166,6 +167,19 @@ void DirectXEventThread( event_thread_t *p_event )
p_event->p_vlc->b_die = VLC_TRUE;
break;
case VK_SPACE:
{
vlc_object_t *p_input = vlc_object_find( p_event->p_vout,
VLC_OBJECT_INPUT, FIND_ANYWHERE );
if( p_input )
{
input_SetStatus( (input_thread_t *)p_input,
INPUT_STATUS_PAUSE );
vlc_object_release( p_input );
}
break;
}
case VK_F1: network_ChannelJoin( p_event, 1 ); break;
case VK_F2: network_ChannelJoin( p_event, 2 ); break;
case VK_F3: network_ChannelJoin( p_event, 3 ); 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