* ALL: bumped version number to 0.6.3-cvs
[vlc.git] / modules / control / gestures.c
index bf3782f..8ba41ad 100644 (file)
@@ -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.5 2003/06/22 13:27:41 sigmunau Exp $
  *
  * Authors: Sigmund Augdal <sigmunau@idi.ntnu.no>
  *
@@ -90,7 +90,7 @@ vlc_module_begin();
     add_integer( "gestures-threshold", 30, NULL, THRESHOLD_TEXT, THRESHOLD_LONGTEXT, VLC_TRUE );
     add_string_from_list( "gestures-button", "right", button_list, NULL,
                           BUTTON_TEXT, BUTTON_LONGTEXT, VLC_FALSE );
-    set_description( _("mouse gestures control module") );
+    set_description( _("mouse gestures control interface") );
 
     set_capability( "interface", 0 );
     set_callbacks( E_(Open), E_(Close) );
@@ -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):
+                /* FIXME: Should close the vout!"*/
+                p_intf->p_vlc->b_die = VLC_TRUE;
+                break;
             case GESTURE(DOWN,LEFT,UP,RIGHT):
                 msg_Dbg(p_intf, "A square!" );
                 break;