now replacel currentController == null with "PC"

This commit is contained in:
2022-11-27 17:33:33 +01:00
parent e28be76afe
commit 280ec83e8a

View File

@@ -14,7 +14,7 @@ public partial class main : Node2D
{
//CHANGE INPUT FOR NINTENDO CONTROLLER
//Checks if using Keyboard or controller and giving out current controller
if(Input.IsMouseButtonPressed(MouseButton.Left) || Input.IsMouseButtonPressed(MouseButton.Right))//this is a terrible way of doing this will be reworked
if(Input.IsMouseButtonPressed(MouseButton.Left) || currentController == null)//this is a terrible way of doing this will be reworked
{
currentController = "PC";
}