|
@@ -712,8 +712,6 @@ static void _mouseDownEvent(NSEvent *event, int index, int mask, bool pressed) {
|
|
|
|
|
|
if (OS_OSX::singleton->main_loop && OS_OSX::singleton->mouse_mode != OS::MOUSE_MODE_CAPTURED)
|
|
if (OS_OSX::singleton->main_loop && OS_OSX::singleton->mouse_mode != OS::MOUSE_MODE_CAPTURED)
|
|
OS_OSX::singleton->main_loop->notification(MainLoop::NOTIFICATION_WM_MOUSE_EXIT);
|
|
OS_OSX::singleton->main_loop->notification(MainLoop::NOTIFICATION_WM_MOUSE_EXIT);
|
|
- if (OS_OSX::singleton->input)
|
|
|
|
- OS_OSX::singleton->input->set_mouse_in_window(false);
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- (void)mouseEntered:(NSEvent *)event {
|
|
- (void)mouseEntered:(NSEvent *)event {
|
|
@@ -721,8 +719,6 @@ static void _mouseDownEvent(NSEvent *event, int index, int mask, bool pressed) {
|
|
return;
|
|
return;
|
|
if (OS_OSX::singleton->main_loop && OS_OSX::singleton->mouse_mode != OS::MOUSE_MODE_CAPTURED)
|
|
if (OS_OSX::singleton->main_loop && OS_OSX::singleton->mouse_mode != OS::MOUSE_MODE_CAPTURED)
|
|
OS_OSX::singleton->main_loop->notification(MainLoop::NOTIFICATION_WM_MOUSE_ENTER);
|
|
OS_OSX::singleton->main_loop->notification(MainLoop::NOTIFICATION_WM_MOUSE_ENTER);
|
|
- if (OS_OSX::singleton->input)
|
|
|
|
- OS_OSX::singleton->input->set_mouse_in_window(true);
|
|
|
|
|
|
|
|
OS::CursorShape p_shape = OS_OSX::singleton->cursor_shape;
|
|
OS::CursorShape p_shape = OS_OSX::singleton->cursor_shape;
|
|
OS_OSX::singleton->cursor_shape = OS::CURSOR_MAX;
|
|
OS_OSX::singleton->cursor_shape = OS::CURSOR_MAX;
|
|
@@ -1696,6 +1692,11 @@ void OS_OSX::set_cursor_shape(CursorShape p_shape) {
|
|
cursor_shape = p_shape;
|
|
cursor_shape = p_shape;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+OS::CursorShape OS_OSX::get_cursor_shape() const {
|
|
|
|
+
|
|
|
|
+ return cursor_shape;
|
|
|
|
+}
|
|
|
|
+
|
|
void OS_OSX::set_custom_mouse_cursor(const RES &p_cursor, CursorShape p_shape, const Vector2 &p_hotspot) {
|
|
void OS_OSX::set_custom_mouse_cursor(const RES &p_cursor, CursorShape p_shape, const Vector2 &p_hotspot) {
|
|
if (p_cursor.is_valid()) {
|
|
if (p_cursor.is_valid()) {
|
|
Ref<Texture> texture = p_cursor;
|
|
Ref<Texture> texture = p_cursor;
|