From cdfe655ac4d2dbb1b8418a9162b6801b2a4ac96b Mon Sep 17 00:00:00 2001 From: Syntriax Date: Fri, 29 Nov 2024 21:41:43 +0300 Subject: [PATCH] refactor: Added IButtonInput Events for Any Button --- Engine.Input/Abstract/IButtonInputs.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Engine.Input/Abstract/IButtonInputs.cs b/Engine.Input/Abstract/IButtonInputs.cs index 59ab741..0882d17 100644 --- a/Engine.Input/Abstract/IButtonInputs.cs +++ b/Engine.Input/Abstract/IButtonInputs.cs @@ -4,6 +4,9 @@ namespace Syntriax.Engine.Input; public interface IButtonInputs : IAssignableStateEnable { + event ButtonCallbackEventHandler? OnAnyButtonPressed; + event ButtonCallbackEventHandler? OnAnyButtonReleased; + void RegisterOnPress(T button, ButtonCallbackEventHandler callback); void UnregisterOnPress(T button, ButtonCallbackEventHandler callback); void RegisterOnRelease(T button, ButtonCallbackEventHandler callback);