From 3ef090e9324211fee6be83dd362353d03f78d48e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20L=C3=BCbe=C3=9F?= Date: Mon, 16 Nov 2020 18:04:31 +0100 Subject: [PATCH] Added old-state-methods and GetMouseMovement --- GlitchyEngine/src/Input.bf | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/GlitchyEngine/src/Input.bf b/GlitchyEngine/src/Input.bf index 05f8790..1c4c4c2 100644 --- a/GlitchyEngine/src/Input.bf +++ b/GlitchyEngine/src/Input.bf @@ -27,18 +27,19 @@ namespace GlitchyEngine public static extern bool IsMouseButtonPressed(MouseButton button); public static extern bool IsMouseButtonReleased(MouseButton button); - - public static extern bool WasMouseButtonPressed(MouseButton button); - public static extern bool WasMouseButtonReleased(MouseButton button); - + public static extern Point GetMousePosition(); public static extern int32 GetMouseX(); public static extern int32 GetMouseY(); + public static extern bool WasMouseButtonPressed(MouseButton button); + public static extern bool WasMouseButtonReleased(MouseButton button); + public static extern Point GetLastMousePosition(); public static extern int32 GetLastMouseX(); public static extern int32 GetLastMouseY(); - - public static extern Point GetMousePosition(); - public static extern Point GetLastMousePosition(); + + public static extern bool IsMouseButtonPressing(MouseButton button); + public static extern bool IsMouseButtonReleasiong(MouseButton button); + public static extern Point GetMouseMovement(); public static extern void NewFrame(); }