Fix pointer speed on tvOS

This commit is contained in:
Cameron Gutman
2019-10-12 18:23:28 -07:00
parent fb2d58da6a
commit a9e01fc9a9

View File

@@ -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 {