Commit 6c1d00ed authored by sigmunau's avatar sigmunau
Browse files

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 @@ ...@@ -2,7 +2,7 @@
* geatures.c: control vlc with mouse gestures * geatures.c: control vlc with mouse gestures
***************************************************************************** *****************************************************************************
* Copyright (C) 2002 VideoLAN * 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> * Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
* *
...@@ -185,14 +185,17 @@ static void RunIntf( intf_thread_t *p_intf ) ...@@ -185,14 +185,17 @@ static void RunIntf( intf_thread_t *p_intf )
playlist_Next( p_playlist ); playlist_Next( p_playlist );
vlc_object_release( p_playlist ); vlc_object_release( p_playlist );
break; break;
case GESTURE(UP,RIGHT,NONE,NONE):
case DOWN: if (p_intf->p_sys->p_vout )
if (p_intf->p_sys->p_vout
&& ((vout_thread_t *)p_intf->p_sys->p_vout)->b_fullscreen )
{ {
((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; 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): case GESTURE(DOWN,LEFT,UP,RIGHT):
msg_Dbg(p_intf, "A square!" ); msg_Dbg(p_intf, "A square!" );
break; break;
......
Supports Markdown
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