From a9e01fc9a966df9c6354017566d8841511d564f7 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sat, 12 Oct 2019 18:23:28 -0700 Subject: [PATCH] Fix pointer speed on tvOS --- Limelight/Input/StreamView.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Limelight/Input/StreamView.m b/Limelight/Input/StreamView.m index a67c3aa..24c15c6 100644 --- a/Limelight/Input/StreamView.m +++ b/Limelight/Input/StreamView.m @@ -38,7 +38,13 @@ xDeltaFactor = x; yDeltaFactor = y; +#if TARGET_OS_TV + // The Apple TV uses indirect touch devices, so they should + // not be scaled by the screen scaling factor. + screenFactor = 1.0f; +#else screenFactor = [[UIScreen mainScreen] scale]; +#endif } - (void) setupStreamView {