2024-01-22 23:38:37 +03:00
|
|
|
using Syntriax.Engine.Core.Abstract;
|
|
|
|
|
|
|
|
namespace Syntriax.Engine.Input;
|
|
|
|
|
|
|
|
public interface IButtonInputs<T> : IAssignableStateEnable
|
|
|
|
{
|
2024-11-23 23:14:44 +03:00
|
|
|
void RegisterOnPress(T button, ButtonCallbackEventHandler callback);
|
|
|
|
void UnregisterOnPress(T button, ButtonCallbackEventHandler callback);
|
|
|
|
void RegisterOnRelease(T button, ButtonCallbackEventHandler callback);
|
|
|
|
void UnregisterOnRelease(T button, ButtonCallbackEventHandler callback);
|
2024-01-22 23:38:37 +03:00
|
|
|
|
|
|
|
bool IsPressed(T button);
|
2024-09-25 14:36:57 +03:00
|
|
|
|
2024-11-23 23:14:44 +03:00
|
|
|
delegate void ButtonCallbackEventHandler(IButtonInputs<T> buttonInputs, T button);
|
2024-01-22 23:38:37 +03:00
|
|
|
}
|