From 1932ed3e03257717b16e4308e5424cb575418477 Mon Sep 17 00:00:00 2001 From: narbs Date: Tue, 31 Mar 2020 13:00:57 +1000 Subject: [PATCH] Update Mini vMac/ViewController.m to hide the iOS system pointer when running on iOS 13.4 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- Mini vMac/ViewController.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Mini vMac/ViewController.m b/Mini vMac/ViewController.m index b8eb43c..cbf1398 100644 --- a/Mini vMac/ViewController.m +++ b/Mini vMac/ViewController.m @@ -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