mirror of
https://github.com/zydeco/minivmac4ios.git
synced 2025-02-16 18:30:24 +00:00
Update Mini vMac/ViewController.m to hide the iOS system pointer when running on iOS 13.4
Uses the UIPointerStyle hiddenPointerStyle to set hide the iOS cursor in the pointerInteraction:styleForRegion delegate method. Also returns the defaultRegion in the pointerInteraction:regionForRequest:defaultRegion delegate method instead of returning nil Co-Authored-By: Jesús A. Álvarez <zydeco@namedfork.net>
This commit is contained in:
parent
ee1c0357f2
commit
1932ed3e03
@ -45,7 +45,12 @@
|
||||
// NSLog(@"Interaction: x2: %hi, y2: %hi", (short)mouseLoc.h, (short)mouseLoc.v);
|
||||
[[AppDelegate sharedEmulator] setMouseX:mouseLoc.h Y:mouseLoc.v];
|
||||
}
|
||||
return nil;
|
||||
return defaultRegion;
|
||||
}
|
||||
|
||||
- (UIPointerStyle *)pointerInteraction:(UIPointerInteraction *)interaction styleForRegion:(UIPointerRegion *)region {
|
||||
return [UIPointerStyle hiddenPointerStyle];
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user