]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/AppleRemote.m
Input access locking. Part one
[vlc] / modules / gui / macosx / AppleRemote.m
index fb81d6797c60110d68c15427d5c8b2ee893aef62..a345c44ec27df56ff511ddfcb0911aa91cc930af 100644 (file)
  *****************************************************************************
  *
  * Note that changes made by any members or contributors of the VideoLAN team
- * (i.e. changes that were checked in to one of VideoLAN's source code
+ * (i.e. changes that were exclusively checked in to one of VideoLAN's source code
  * repositories) are licensed under the GNU General Public License version 2,
  * or (at your option) any later version. 
  * Thus, the following statements apply to our changes:
  *
- * Copyright (C) 2006 the VideoLAN team
+ * Copyright (C) 2006-2007 the VideoLAN team
  * Authors: Eric Petit <titer@m0k.org>
  *          Felix Kühne <fkuehne at videolan dot org>
  *
@@ -53,6 +53,9 @@
 
 #import "AppleRemote.h"
 
+/* this was added by the VideoLAN team to ensure Leopard-compatibility and is VLC-only */
+#import "intf.h"
+
 const char* AppleRemoteDeviceName = "AppleIRController";
 const int REMOTE_SWITCH_COOKIE=19;
 const NSTimeInterval DEFAULT_MAXIMUM_CLICK_TIME_DIFFERENCE=0.35;
@@ -95,6 +98,15 @@ const NSTimeInterval HOLD_RECOGNITION_TIME_INTERVAL=0.4;
     [super dealloc];
 }
 
+/* this was added by the VideoLAN team to ensure Leopard-compatibility and is VLC-only */
+#if GC_ENABLED
+- (void)finalize
+{
+    [self stopListening: self];
+    [super finalize];
+}
+#endif
+
 - (int) remoteId {
     return remoteId;
 }