From aa87150788de82e0713c514347648e1cae284f2e Mon Sep 17 00:00:00 2001 From: iWas-Coder Date: Wed, 18 Sep 2024 09:11:50 +0200 Subject: [PATCH] Added wrapper around check if mouse btn is pressed --- src/Runtime/InputSystem.cc | 4 ++++ src/Runtime/InputSystem.hh | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/Runtime/InputSystem.cc b/src/Runtime/InputSystem.cc index 1659cd7..69d0744 100644 --- a/src/Runtime/InputSystem.cc +++ b/src/Runtime/InputSystem.cc @@ -5,6 +5,10 @@ #include "Rigidbody2DComponent.hh" namespace volt::runtime { + bool GetMouseButtonDown(uint8_t button) { + return IsMouseButtonDown(button); + } + InputSystem::InputSystem(void) { VOLT_LOG_INFO("InputSystem: created successfully"); } diff --git a/src/Runtime/InputSystem.hh b/src/Runtime/InputSystem.hh index 882a827..63e8de9 100644 --- a/src/Runtime/InputSystem.hh +++ b/src/Runtime/InputSystem.hh @@ -3,6 +3,8 @@ #include "Scene.hh" namespace volt::runtime { + bool GetMouseButtonDown(uint8_t button); + struct InputSystem { InputSystem(void); InputSystem(const InputSystem &) = delete;