mouse only
This commit is contained in:
1 parent
5b14b5b8ee
commit
a053fd545c
1 file changed
+1
-4
@@ -28,11 +28,8 @@ final class RenderGLView: FrameworkElement {
|
||||
guard let point = try? event?.getCurrentPoint(self) else { return }
|
||||
let position = [Float(point.position.x), Float(actualHeight) - Float(point.position.y)]
|
||||
|
||||
if point.pointerDeviceType == .mouse {
|
||||
guard point.properties.pointerUpdateKind == .leftButtonPressed else { return }
|
||||
if point.properties.pointerUpdateKind == .leftButtonPressed {
|
||||
renderSet(F.mouseDownPos, position)
|
||||
} else {
|
||||
renderSet(F.touchDownPos, position)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user