diff --git a/client/scripts/rendering/cursor_renderer.gd b/client/scripts/rendering/cursor_renderer.gd index d5c111b8d..ca330e06a 100644 --- a/client/scripts/rendering/cursor_renderer.gd +++ b/client/scripts/rendering/cursor_renderer.gd @@ -60,6 +60,15 @@ func _renderer_ready() -> void: _from = _snapshot() +func _on_gameplay_occluded(occluded: bool) -> void: + super._on_gameplay_occluded(occluded) + # Show system cursor when custom cursor is hidden (fullscreen implant apps) + if occluded: + Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE) + else: + Input.set_mouse_mode(Input.MOUSE_MODE_HIDDEN) + + func _notification(what: int) -> void: if what == NOTIFICATION_WM_MOUSE_EXIT: _mouse_inside = false