[ios-external-touch] - fix gesture recognition on whole screen, increase fadeout...
authorMemphiz <memphis@machzwo.de>
Mon, 7 May 2012 16:40:43 +0000 (18:40 +0200)
committerMemphiz <memphis@machzwo.de>
Mon, 7 May 2012 16:47:36 +0000 (18:47 +0200)
xbmc/osx/IOSExternalTouchController.mm

index 6a4b3a3..693c24c 100644 (file)
@@ -31,8 +31,8 @@
 #import "IOSExternalTouchController.h"
 #import "XBMCController.h"
 
-//dim the touchscreen after 10 secs without touch event
-const CGFloat touchScreenDimTimeoutSecs       = 10.0;
+//dim the touchscreen after 15 secs without touch event
+const CGFloat touchScreenDimTimeoutSecs       = 15.0;
 const CGFloat timeFadeSecs                    = 2.0;
 
 @interface IOSExternalTouchController ()
@@ -118,6 +118,7 @@ const CGFloat timeFadeSecs                    = 2.0;
     [self createGestureRecognizers];
 
     [_internalWindow addSubview:[self view]];
+    [_internalWindow setBackgroundColor:[UIColor blackColor]];
     [_internalWindow setScreen:[UIScreen mainScreen]];
     [_internalWindow makeKeyAndVisible];
 
@@ -249,7 +250,7 @@ const CGFloat timeFadeSecs                    = 2.0;
                                       initWithTarget:self action:@selector(handleSwipeUp:)];
   [swipeUp setNumberOfTouchesRequired:1];
   [swipeUp setDirection:UISwipeGestureRecognizerDirectionUp];
-  [[self view] addGestureRecognizer:swipeUp];
+  [[self view] addGestureRecognizer:swipeUp];  
   [swipeUp release];
 
   //single finger swipe down for down