Posts

Post marked as solved
3 Replies
411 Views
Hi, I'm my game I'm using GCController to check for inputs, I have the following handlers set for when the current mouse changes override func mouseDidBecomeCurrent(_ mouse: GCMouse) {         guard let mouseInput = mouse.mouseInput else { return }         mouseInput.mouseMovedHandler = { (input, deltaX, deltaY) in             print("x: \(deltaX), y: \(deltaY), mouse: \(input.leftButton.isPressed)")             if (input.leftButton.isPressed) {                 let delta: SIMD2<Float> = [deltaX, deltaY]                 self.cameraManager.current.rotate(delta: delta)             }         }               mouseInput.scroll.valueChangedHandler = { (dpad, deltaX, deltaY) in             print(dpad)             self.cameraManager.current.zoom(delta: deltaY)         }     } override func mouseStopBeingCurrent(_ mouse: GCMouse {     guard let mouseInput = mouse.mouseInput else { return }     mouseInput.mouseMovedHandler = nil     mouseInput.scroll.valueChangedHandler = nil } I receive move mouse events as expected but .leftButton.isPressed on my input is always false until I scroll my trackpad. I'm also tracking mouse movements in view controller so I get the mouse position on screen and not just the deltas. let trackingArea = NSTrackingArea(rect: metalView.bounds, options: [.activeWhenFirstResponder, .mouseMoved, .enabledDuringMouseDrag], owner: self, userInfo: nil) metalView.addTrackingArea(trackingArea) Can the tracker cause this type of conflict?
Posted
by alnaranjo.
Last updated
.
Post not yet marked as solved
1 Replies
513 Views
Xcode 9.1 Beta 2 (9B46) does not support devices running iOS 11.2 beta 1. The download section on Apple developer portal does not list any new Xcode beta version beyond 9B46.How can we test on a real devices running the latest iOS 11.2 beta?Xcode Devices and Simulators simply indicate:"This iPad (5th generation) (Model A1822) is running iOS 11.2 (15C5092b), which may not be supported by this version of Xcode."
Posted
by alnaranjo.
Last updated
.