Implemented basic input polling

This commit is contained in:
Simon Lübeß
2020-11-13 19:45:23 +01:00
parent 5697f606d5
commit 356011119b
2 changed files with 123 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
using System;
using GlitchyEngine.Events;
using GlitchyEngine.Math;
namespace GlitchyEngine
{
public static class Input
{
public static extern bool IsKeyPressed(int32 keycode);
public static extern bool IsKeyReleased(int32 keycode);
public static extern bool IsKeyToggled(int32 keycode);
public static extern bool IsMouseButtonPressed(MouseButton button);
public static extern bool IsMouseButtonReleased(MouseButton button);
public static extern int32 GetMouseX();
public static extern int32 GetMouseY();
public static extern Point GetMousePosition();
}
}