mirror of
https://github.com/moonlight-stream/moonlight-ios.git
synced 2025-07-03 16:26:07 +00:00
Only hide the cursor over the video region
This commit is contained in:
parent
68e59aba74
commit
10d2e1635b
@ -492,8 +492,8 @@ static const double X1_MOUSE_SPEED_DIVISOR = 2.5;
|
|||||||
LiSendMousePositionEvent(x - videoOrigin.x, y - videoOrigin.y,
|
LiSendMousePositionEvent(x - videoOrigin.x, y - videoOrigin.y,
|
||||||
videoSize.width, videoSize.height);
|
videoSize.width, videoSize.height);
|
||||||
|
|
||||||
// The pointer interaction should cover the entire view
|
// The pointer interaction should cover the video region only
|
||||||
return [UIPointerRegion regionWithRect:self.bounds identifier:nil];
|
return [UIPointerRegion regionWithRect:CGRectMake(videoOrigin.x, videoOrigin.y, videoSize.width, videoSize.height) identifier:nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (UIPointerStyle *)pointerInteraction:(UIPointerInteraction *)interaction styleForRegion:(UIPointerRegion *)region API_AVAILABLE(ios(13.4)) {
|
- (UIPointerStyle *)pointerInteraction:(UIPointerInteraction *)interaction styleForRegion:(UIPointerRegion *)region API_AVAILABLE(ios(13.4)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user