20 lines
424 B
C#
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);
|
|
}
|