From 7fd3b8df1cea2062d61d01ed39f06cc418a02575 Mon Sep 17 00:00:00 2001 From: Andrew Scagnelli Date: Thu, 18 Oct 2018 00:04:04 -0400 Subject: [PATCH] on tvOS, do not quit the stream on pressing B on tvOS (maybe also on other cases where you're using a "real" gamepad?), use GCEventViewController so the system-level "back" event doesn't quit the stream --- Limelight/ViewControllers/StreamFrameViewController.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Limelight/ViewControllers/StreamFrameViewController.h b/Limelight/ViewControllers/StreamFrameViewController.h index f9bf163..77aaea5 100644 --- a/Limelight/ViewControllers/StreamFrameViewController.h +++ b/Limelight/ViewControllers/StreamFrameViewController.h @@ -12,7 +12,13 @@ #import +#if TARGET_OS_TV +@import GameController; + +@interface StreamFrameViewController : GCEventViewController +#else @interface StreamFrameViewController : UIViewController +#endif @property (strong, nonatomic) IBOutlet UILabel *stageLabel; @property (strong, nonatomic) IBOutlet UIActivityIndicatorView *spinner; @property (nonatomic) StreamConfiguration* streamConfig;