mirror of
https://gitlab.com/MaddoScientisto/cirnogodot.git
synced 2026-06-10 18:15:53 +00:00
Tweaks
This commit is contained in:
parent
595bdcc501
commit
95012054b3
2 changed files with 79 additions and 106 deletions
|
|
@ -123,17 +123,7 @@ public partial class KeyboardInputProvider : InputProvider
|
|||
|
||||
private Vector2 GetMouseAimInput()
|
||||
{
|
||||
|
||||
return _mouseAImProvider?.GetMouseAimInput() ?? Vector2.Zero;
|
||||
// //Camera2D camera = GetViewport().GetCamera2D();
|
||||
// //if (camera == null) return Vector2.Zero; // Ensure there's a valid camera
|
||||
//
|
||||
// //Vector2 mouseScreenPos = GetViewport().get_local_mouse_position();
|
||||
// if (GameManager.Instance is null) return Vector2.Zero;
|
||||
//
|
||||
// Vector2 mouseWorldPos = DisplayServer.MouseGetPosition();// GameManager.Instance.GetGlobalMousePosition();
|
||||
//
|
||||
// return mouseWorldPos - GameManager.Instance.PlayerPosition.Value; // Get direction vector
|
||||
}
|
||||
|
||||
public override bool GetActionJustPressed(string action)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue