From ed9eeb05e70b7ddc7233cef1855162f21213b307 Mon Sep 17 00:00:00 2001 From: Viktor Sukochev Date: Thu, 31 Aug 2017 18:23:48 +0700 Subject: [PATCH] Universal input events --- Source/platform/macOS/MView_macOS.swift | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/Source/platform/macOS/MView_macOS.swift b/Source/platform/macOS/MView_macOS.swift index 911c1499..02383756 100644 --- a/Source/platform/macOS/MView_macOS.swift +++ b/Source/platform/macOS/MView_macOS.swift @@ -172,20 +172,6 @@ import Foundation } private func handleInput(event: NSEvent, handler: (_ touches: [MTouchEvent]) -> Void ) { - // Touch pad - if event.subtype == .touch { - let touchPoints = event.touches(matching: .any, in: self).map { touch -> MTouchEvent in - let location = touch.location(in: self) - let id = Int(bitPattern: Unmanaged.passUnretained(touch).toOpaque()) - - return MTouchEvent(x: Double(location.x), y: Double(location.y), id: id) - } - - handler(touchPoints) - return - } - - // Mouse let location = self.convert(event.locationInWindow, to: .none) let touchPoint = MTouchEvent(x: Double(location.x), y: Double(location.y), id: 0)