using Godot; using System; public partial class VirtualCursor : Node2D { //[Export] public Node2D Cursor; protected Sprite2D CursorSprite; // Called when the node enters the scene tree for the first time. public override void _Ready() { CursorSprite = (Sprite2D)FindChild("CursorSprite"); } // Called every frame. 'delta' is the elapsed time since the previous frame. public override void _Process(double delta) { } public override void _Input(InputEvent @event) { // base._Input(@event); // // if (@event is InputEventMouseMotion eventMouseMotion) // { // CursorSprite.Position = eventMouseMotion.Position - Constants.HalfScreenSize + Position; // } } }