refactor: Added IButtonInput Events for Any Button
This commit is contained in:
parent
b4659def55
commit
cdfe655ac4
|
@ -4,6 +4,9 @@ namespace Syntriax.Engine.Input;
|
||||||
|
|
||||||
public interface IButtonInputs<T> : IAssignableStateEnable
|
public interface IButtonInputs<T> : IAssignableStateEnable
|
||||||
{
|
{
|
||||||
|
event ButtonCallbackEventHandler? OnAnyButtonPressed;
|
||||||
|
event ButtonCallbackEventHandler? OnAnyButtonReleased;
|
||||||
|
|
||||||
void RegisterOnPress(T button, ButtonCallbackEventHandler callback);
|
void RegisterOnPress(T button, ButtonCallbackEventHandler callback);
|
||||||
void UnregisterOnPress(T button, ButtonCallbackEventHandler callback);
|
void UnregisterOnPress(T button, ButtonCallbackEventHandler callback);
|
||||||
void RegisterOnRelease(T button, ButtonCallbackEventHandler callback);
|
void RegisterOnRelease(T button, ButtonCallbackEventHandler callback);
|
||||||
|
|
Loading…
Reference in New Issue