From 22a4bc355eebcb443931d439420945cd52280ad7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20L=C3=BCbe=C3=9F?= Date: Sun, 19 Sep 2021 17:35:53 +0200 Subject: [PATCH] Fixed typo --- GlitchyEngine/src/Input.bf | 2 +- GlitchyEngine/src/Platform/Windows/WindowsInput.bf | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/GlitchyEngine/src/Input.bf b/GlitchyEngine/src/Input.bf index 1c4c4c2..17d4dbd 100644 --- a/GlitchyEngine/src/Input.bf +++ b/GlitchyEngine/src/Input.bf @@ -38,7 +38,7 @@ namespace GlitchyEngine public static extern int32 GetLastMouseY(); public static extern bool IsMouseButtonPressing(MouseButton button); - public static extern bool IsMouseButtonReleasiong(MouseButton button); + public static extern bool IsMouseButtonReleasing(MouseButton button); public static extern Point GetMouseMovement(); public static extern void NewFrame(); diff --git a/GlitchyEngine/src/Platform/Windows/WindowsInput.bf b/GlitchyEngine/src/Platform/Windows/WindowsInput.bf index 5482d47..95259eb 100644 --- a/GlitchyEngine/src/Platform/Windows/WindowsInput.bf +++ b/GlitchyEngine/src/Platform/Windows/WindowsInput.bf @@ -150,11 +150,10 @@ namespace GlitchyEngine // public override static bool IsMouseButtonPressing(MouseButton button) => IsMouseButtonPressed(button) && WasMouseButtonReleased(button); - public override static bool IsMouseButtonReleasiong(MouseButton button) => IsMouseButtonReleased(button) && WasMouseButtonPressed(button); + public override static bool IsMouseButtonReleasing(MouseButton button) => IsMouseButtonReleased(button) && WasMouseButtonPressed(button); public override static Point GetMouseMovement() => CurrentState.CursorPositionDifference; - //[CLink, CallingConvention(.Stdcall)] //static extern int16 GetKeyState(int32 keycode); [CLink, CallingConvention(.Stdcall)]