fixed button variables being the same

This commit is contained in:
2022-11-27 19:30:13 +01:00
parent d2e1e536d5
commit 67fa20c946

View File

@@ -21,7 +21,7 @@ public partial class main : Node2D
//CHANGE INPUT FOR NINTENDO CONTROLLER
InputEventJoypadButton JoyButtonA = new InputEventJoypadButton() { ButtonIndex = JoyButton.A };
InputEventJoypadButton JoyButtonB = new InputEventJoypadButton() { ButtonIndex = JoyButton.A };
InputEventJoypadButton JoyButtonB = new InputEventJoypadButton() { ButtonIndex = JoyButton.B };
if (currentController.StartsWith("Nintendo"))
{
InputMap.ActionEraseEvent("ui_accept", JoyButtonA);