refactor: Added IButtonInput Events for Any Button

This commit is contained in:
Syntriax 2024-11-29 21:41:43 +03:00
parent b4659def55
commit cdfe655ac4
1 changed files with 3 additions and 0 deletions

View File

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