added a down, right gesture to quit vlc and an up, right gesture that swaps

fullscreen on/off, removed the down gesture as it is now covered by the up,
right gesture
parent 44ae8d78
......@@ -2,7 +2,7 @@
* geatures.c: control vlc with mouse gestures
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* $Id: gestures.c,v 1.2 2003/02/20 01:52:46 sigmunau Exp $
* $Id: gestures.c,v 1.3 2003/03/08 01:55:28 sigmunau Exp $
*
* Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
*
......@@ -185,14 +185,17 @@ static void RunIntf( intf_thread_t *p_intf )
playlist_Next( p_playlist );
vlc_object_release( p_playlist );
break;
case DOWN:
if (p_intf->p_sys->p_vout
&& ((vout_thread_t *)p_intf->p_sys->p_vout)->b_fullscreen )
case GESTURE(UP,RIGHT,NONE,NONE):
if (p_intf->p_sys->p_vout )
{
((vout_thread_t *)p_intf->p_sys->p_vout)->i_changes |= VOUT_FULLSCREEN_CHANGE;
((vout_thread_t *)p_intf->p_sys->p_vout)->i_changes |=
VOUT_FULLSCREEN_CHANGE;
}
break;
case GESTURE(DOWN,RIGHT,NONE,NONE):
p_intf->p_vlc->b_die = VLC_TRUE;
msg_Dbg(p_intf, "Should close the vout!" );
break;
case GESTURE(DOWN,LEFT,UP,RIGHT):
msg_Dbg(p_intf, "A square!" );
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