Files
GameJamDungeon/Zennysoft.Game.Ma/src/options/InputMapButton.cs
2025-11-03 02:48:05 -08:00

20 lines
424 B
C#

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);
}