mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2026-06-17 22:23:52 +00:00
Fix pointer speed on tvOS
This commit is contained in:
@@ -38,7 +38,13 @@
|
|||||||
xDeltaFactor = x;
|
xDeltaFactor = x;
|
||||||
yDeltaFactor = y;
|
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];
|
screenFactor = [[UIScreen mainScreen] scale];
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) setupStreamView {
|
- (void) setupStreamView {
|
||||||
|
|||||||
Reference in New Issue
Block a user