]> git.sesse.net Git - vlc/commitdiff
macosx: added option to disable the next/prev feature on the Apple Remote (close...
authorFelix Paul Kühne <fkuehne@videolan.org>
Thu, 23 Aug 2012 09:44:13 +0000 (11:44 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Thu, 23 Aug 2012 09:45:53 +0000 (11:45 +0200)
NEWS
modules/gui/macosx/intf.m
modules/gui/macosx/macosx.m

diff --git a/NEWS b/NEWS
index bdbfde3dcee376a20b6bea803d2eee0c1b52f52d..371d6d68718b11103d4e312188103fa45bbaf4f7 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -79,6 +79,7 @@ Mac OS X Interface:
    - This also allows to capture input from a webcam and a mic at the same time.
  * add an option to let the Apple Remote control the system volume instead of
    VLC's internal volume level
+ * add an option to disable skipping to next/previous file with the Apple Remote
  * add an option to show next / previous buttons
  * add an option to hide the shuffle and repeat buttons
  * add optional playlist columns for track number, genre, album, description,
index 9b381d7df51d305602739e351c12deeeaf5f7436..5005355c24d24a7feaec00a50472fc3a147d344c 100644 (file)
@@ -1041,10 +1041,16 @@ static VLCMain *_o_sharedMainInstance = nil;
                     var_SetInteger( p_intf->p_libvlc, "key-action", ACTIONID_VOL_DOWN );
             break;
         case kRemoteButtonRight:
-            [[VLCCoreInteraction sharedInstance] next];
+            if (config_GetInt( VLCIntf, "macosx-appleremote-prevnext"))
+                [[VLCCoreInteraction sharedInstance] forward];
+            else
+                [[VLCCoreInteraction sharedInstance] next];
             break;
         case kRemoteButtonLeft:
-            [[VLCCoreInteraction sharedInstance] previous];
+            if (config_GetInt( VLCIntf, "macosx-appleremote-prevnext"))
+                [[VLCCoreInteraction sharedInstance] backward];
+            else
+                [[VLCCoreInteraction sharedInstance] previous];
             break;
         case kRemoteButtonRight_Hold:
         case kRemoteButtonLeft_Hold:
index 799a35ebab52686d5340a1b38635bc9a23055806..ca1a96406e5870ec74250ad28f959f7f2a0fd38f 100644 (file)
@@ -82,6 +82,9 @@ void WindowClose  ( vout_window_t * );
 #define USE_APPLE_REMOTE_VOLUME_TEXT N_("Control system volume with the Apple Remote")
 #define USE_APPLE_REMOTE_VOLUME_LONGTEXT N_("By default, VLC will control its own volume with the Apple Remote. However, you can choose to control the global system volume instead.")
 
+#define USE_APPLE_REMOTE_PREVNEXT_TEXT N_("Control playlist items with the Apple Remote")
+#define USE_APPLE_REMOTE_PREVNEXT_LONGTEXT N_("By default, VLC will allow you to switch to the next or previous item with the Apple Remote. Remote. You can disable this behavior with this option.")
+
 #define USE_MEDIAKEYS_TEXT N_("Control playback with media keys")
 #define USE_MEDIAKEYS_LONGTEXT N_("By default, VLC can be controlled using the media keys on modern Apple " \
                                   "keyboards.")
@@ -128,6 +131,7 @@ vlc_module_begin ()
     add_bool( "macosx-fspanel", true, FSPANEL_TEXT, FSPANEL_LONGTEXT, false )
     add_bool( "macosx-appleremote", true, USE_APPLE_REMOTE_TEXT, USE_APPLE_REMOTE_LONGTEXT, false )
     add_bool( "macosx-appleremote-sysvol", false, USE_APPLE_REMOTE_VOLUME_TEXT, USE_APPLE_REMOTE_VOLUME_LONGTEXT, false )
+    add_bool( "macosx-appleremote-prevnext", false, USE_APPLE_REMOTE_PREVNEXT_TEXT, USE_APPLE_REMOTE_PREVNEXT_LONGTEXT, false )
     add_bool( "macosx-mediakeys", true, USE_MEDIAKEYS_TEXT, USE_MEDIAKEYS_LONGTEXT, false )
     add_bool( "macosx-interfacestyle", false, INTERFACE_STYLE_TEXT, INTERFACE_STYLE_LONGTEXT, false )
     add_bool( "macosx-nativefullscreenmode", false, NATIVE_FULLSCREEN_MODE_ON_LION_TEXT, NATIVE_FULLSCREEN_MODE_ON_LION_LONGTEXT, false )