mirror of
https://github.com/antopilo/Nuake.git
synced 2026-09-27 16:17:12 +03:00
Added ShowMouse and get global position to .net api, deferred onInit after all entities have been initialized
This commit is contained in:
@@ -134,10 +134,16 @@ namespace Nuake.Net
|
||||
|
||||
public class Input
|
||||
{
|
||||
internal static unsafe delegate*<bool, void> ShowMouseIcall;
|
||||
internal static unsafe delegate*<int, bool> IsKeyDownIcall;
|
||||
internal static unsafe delegate*<int, bool> IsKeyPressedIcall;
|
||||
internal static unsafe delegate*<NativeArray<float>> GetMousePositionIcall;
|
||||
|
||||
public static void ShowMouse(bool visible)
|
||||
{
|
||||
unsafe { ShowMouseIcall(visible); }
|
||||
}
|
||||
|
||||
public static bool IsKeyDown(Key keys)
|
||||
{
|
||||
unsafe { return IsKeyDownIcall((int)keys); }
|
||||
|
||||
Reference in New Issue
Block a user