BREAKING CHANGE: Removed MonoGame Package
This commit is contained in:
14
Engine.Input/Abstract/IButtonInputs.cs
Normal file
14
Engine.Input/Abstract/IButtonInputs.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Syntriax.Engine.Core.Abstract;
|
||||
|
||||
namespace Syntriax.Engine.Input;
|
||||
|
||||
public interface IButtonInputs<T> : IAssignableStateEnable
|
||||
{
|
||||
void RegisterOnPress(T button, Action<IButtonInputs<T>, T> callback);
|
||||
void UnregisterOnPress(T button, Action<IButtonInputs<T>, T> callback);
|
||||
void RegisterOnRelease(T button, Action<IButtonInputs<T>, T> callback);
|
||||
void UnregisterOnRelease(T button, Action<IButtonInputs<T>, T> callback);
|
||||
|
||||
bool IsPressed(T button);
|
||||
bool WasPressed(T button);
|
||||
}
|
||||
@@ -1,16 +0,0 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user