feat: Added Input Class Library w/ Keyboard Inputs

This commit is contained in:
2023-11-24 15:34:05 +03:00
parent 5f2c551fa4
commit d60537f940
11 changed files with 689 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
using Microsoft.Xna.Framework.Input;
using Syntriax.Engine.Core.Abstract;
namespace Syntriax.Engine.Input;
public interface IKeyboardInputs : IAssignableStateEnable
{
void RegisterOnPress(Keys key, Action<IKeyboardInputs, Keys> callback);
void UnregisterOnPress(Keys key, Action<IKeyboardInputs, Keys> callback);
void RegisterOnRelease(Keys key, Action<IKeyboardInputs, Keys> callback);
void UnregisterOnRelease(Keys key, Action<IKeyboardInputs, Keys> callback);
bool IsPressed(Keys key);
bool WasPressed(Keys key);
}