[vlc-devel] commit: Maemo: use left button by default for gestures (not tested) ( Rémi Denis-Courmont )

git version control git at videolan.org
Mon Oct 19 22:15:14 CEST 2009


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Mon Oct 19 23:13:44 2009 +0300| [5f8c04120ac65de57399b8d723a8e1b5f1a09865] | committer: Rémi Denis-Courmont 

Maemo: use left button by default for gestures (not tested)

There is only one button on a touch screen.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5f8c04120ac65de57399b8d723a8e1b5f1a09865
---

 modules/control/gestures.c |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/modules/control/gestures.c b/modules/control/gestures.c
index c4ab6c7..52ddb38 100644
--- a/modules/control/gestures.c
+++ b/modules/control/gestures.c
@@ -86,6 +86,12 @@ static void RunIntf        ( intf_thread_t *p_intf );
 #define BUTTON_LONGTEXT N_( \
     "Trigger button for mouse gestures." )
 
+#if defined (HAVE_MAEMO)
+# define BUTTON_DEFAULT "left"
+#else
+# define BUTTON_DEFAULT "right"
+#endif
+
 static const char *const button_list[] = { "left", "middle", "right" };
 static const char *const button_list_text[] =
                                    { N_("Left"), N_("Middle"), N_("Right") };
@@ -96,7 +102,7 @@ vlc_module_begin ()
     set_subcategory( SUBCAT_INTERFACE_CONTROL )
     add_integer( "gestures-threshold", 30, NULL,
                  THRESHOLD_TEXT, THRESHOLD_LONGTEXT, true )
-    add_string( "gestures-button", "right", NULL,
+    add_string( "gestures-button", BUTTON_DEFAULT, NULL,
                 BUTTON_TEXT, BUTTON_LONGTEXT, false )
         change_string_list( button_list, button_list_text, 0 )
     set_description( N_("Mouse gestures control interface") )




More information about the vlc-devel mailing list