You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-05 17:15:09 +00:00
[macOS] Fix custom mouse cursor not set after mouse mode change.
This commit is contained in:
@@ -2120,6 +2120,12 @@ void DisplayServerOSX::mouse_set_mode(MouseMode p_mode) {
|
||||
ignore_warp = true;
|
||||
warp_events.clear();
|
||||
mouse_mode = p_mode;
|
||||
|
||||
if (mouse_mode == MOUSE_MODE_VISIBLE || mouse_mode == MOUSE_MODE_CONFINED) {
|
||||
CursorShape p_shape = cursor_shape;
|
||||
cursor_shape = DisplayServer::CURSOR_MAX;
|
||||
cursor_set_shape(p_shape);
|
||||
}
|
||||
}
|
||||
|
||||
DisplayServer::MouseMode DisplayServerOSX::mouse_get_mode() const {
|
||||
|
||||
Reference in New Issue
Block a user