You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Merge pull request #105822 from bruvzg/mm_update_enter
[macOS] Update entered state from `mouseMoved`.
This commit is contained in:
@@ -532,6 +532,11 @@
|
|||||||
mm->set_relative_screen_position(relativeMotion);
|
mm->set_relative_screen_position(relativeMotion);
|
||||||
ds->get_key_modifier_state([event modifierFlags], mm);
|
ds->get_key_modifier_state([event modifierFlags], mm);
|
||||||
|
|
||||||
|
const NSRect contentRect = [wd.window_view frame];
|
||||||
|
if (NSPointInRect([event locationInWindow], contentRect)) {
|
||||||
|
ds->mouse_enter_window(window_id);
|
||||||
|
}
|
||||||
|
|
||||||
Input::get_singleton()->parse_input_event(mm);
|
Input::get_singleton()->parse_input_event(mm);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user