Standardize mouse input scaling to avoid variance based on stream resolution
This commit is contained in:
parent
10d2e1635b
commit
bd5e0ecc40
3 changed files with 8 additions and 32 deletions
|
|
@ -77,13 +77,6 @@
|
|||
return;
|
||||
}
|
||||
}
|
||||
|
||||
// Set mouse delta factors from the screen resolution and stream size
|
||||
CGFloat screenScale = [[UIScreen mainScreen] scale];
|
||||
CGRect screenBounds = [[UIScreen mainScreen] bounds];
|
||||
CGSize screenSize = CGSizeMake(screenBounds.size.width * screenScale, screenBounds.size.height * screenScale);
|
||||
[((StreamView*)_renderView) setMouseDeltaFactors:_config.width / screenSize.width
|
||||
y:_config.height / screenSize.height];
|
||||
|
||||
// Populate the config's version fields from serverinfo
|
||||
_config.appVersion = appversion;
|
||||
|
|
|
|||
Loading…
Reference in a new issue