mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 13:01:52 +00:00
Basic entity scripting
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
using System.Runtime.CompilerServices;
|
||||
|
||||
namespace GlitchyEngine;
|
||||
|
||||
public static class Input
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern bool IsKeyPressed(Key key);
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern bool IsKeyReleased(Key key);
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern bool IsKeyToggled(Key key);
|
||||
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern bool IsKeyPressing(Key key);
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern bool IsKeyReleasing(Key key);
|
||||
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern bool IsMouseButtonPressed(MouseButton mouseButton);
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern bool IsMouseButtonReleased(MouseButton mouseButton);
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern bool IsMouseButtonPressing(MouseButton mouseButton);
|
||||
[MethodImpl(MethodImplOptions.InternalCall)]
|
||||
public static extern bool IsMouseButtonReleasing(MouseButton mouseButton);
|
||||
}
|
||||
Reference in New Issue
Block a user