mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-15 20:08:54 +03:00
Added isKeyPressed C# api
This commit is contained in:
@@ -135,6 +135,7 @@ namespace Nuake.Net
|
||||
public class Input
|
||||
{
|
||||
internal static unsafe delegate*<int, bool> IsKeyDownIcall;
|
||||
internal static unsafe delegate*<int, bool> IsKeyPressedIcall;
|
||||
internal static unsafe delegate*<NativeArray<float>> GetMousePositionIcall;
|
||||
|
||||
public static bool IsKeyDown(Key keys)
|
||||
@@ -142,6 +143,11 @@ namespace Nuake.Net
|
||||
unsafe { return IsKeyDownIcall((int)keys); }
|
||||
}
|
||||
|
||||
public static bool IsKeyPressed(Key key)
|
||||
{
|
||||
unsafe { return IsKeyPressedIcall((int)key); }
|
||||
}
|
||||
|
||||
public static Vector2 GetMousePosition()
|
||||
{
|
||||
NativeArray<float> result;
|
||||
|
||||
Reference in New Issue
Block a user