Syntriax.Engine/Engine.Input/Abstract/IButtonInputs.cs

16 lines
534 B
C#
Raw Permalink Normal View History

using Syntriax.Engine.Core.Abstract;
namespace Syntriax.Engine.Input;
public interface IButtonInputs<T> : IAssignableStateEnable
{
void RegisterOnPress(T button, ButtonCallbackDelegate callback);
void UnregisterOnPress(T button, ButtonCallbackDelegate callback);
void RegisterOnRelease(T button, ButtonCallbackDelegate callback);
void UnregisterOnRelease(T button, ButtonCallbackDelegate callback);
bool IsPressed(T button);
delegate void ButtonCallbackDelegate(IButtonInputs<T> buttonInputs, T button);
}