mirror of
https://github.com/aharabada/glitchy-engine-beef.git
synced 2026-09-05 21:01:52 +00:00
28 lines
1.1 KiB
C#
28 lines
1.1 KiB
C#
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);
|
|
}
|