Button remapping work

This commit is contained in:
2025-11-03 02:48:05 -08:00
parent 9fc875eda5
commit 7b7fc910bd
40 changed files with 2390 additions and 84 deletions

View File

@@ -0,0 +1,19 @@
using Godot;
namespace Zennysoft.Game.Ma;
public abstract partial class InputMapButton : Button
{
[Signal] public delegate void RemapEventHandler(InputMapButton buttonBeingRemapped);
public string Action { get; set; }
public InputEvent InputEvent { get; set; }
public InputMapButton()
{
Pressed += RemapButton_Pressed;
}
private void RemapButton_Pressed() => EmitSignal(SignalName.Remap, this);
}