macOS: remove deprecated touch event API call
Now that the minimum version is macOS 10.13, we can use the new API.
This reverts commit f97a64aa9b
.
This commit is contained in:
@@ -404,7 +404,7 @@ GHOST_WindowCocoa::GHOST_WindowCocoa(GHOST_SystemCocoa *systemCocoa,
|
|||||||
[m_window setAcceptsMouseMovedEvents:YES];
|
[m_window setAcceptsMouseMovedEvents:YES];
|
||||||
|
|
||||||
NSView *contentview = [m_window contentView];
|
NSView *contentview = [m_window contentView];
|
||||||
[contentview setAcceptsTouchEvents:YES];
|
[contentview setAllowedTouchTypes:(NSTouchTypeMaskDirect | NSTouchTypeMaskIndirect)];
|
||||||
|
|
||||||
[m_window registerForDraggedTypes:[NSArray arrayWithObjects:NSFilenamesPboardType,
|
[m_window registerForDraggedTypes:[NSArray arrayWithObjects:NSFilenamesPboardType,
|
||||||
NSStringPboardType,
|
NSStringPboardType,
|
||||||
|
Reference in New Issue
Block a user