Skip to content

Commit

Permalink
Added wrapper around check if mouse btn is pressed
Browse files Browse the repository at this point in the history
  • Loading branch information
iWas-Coder committed Sep 18, 2024
1 parent c86f452 commit aa87150
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Runtime/InputSystem.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
Expand Down
2 changes: 2 additions & 0 deletions src/Runtime/InputSystem.hh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
#include "Scene.hh"

namespace volt::runtime {
bool GetMouseButtonDown(uint8_t button);

struct InputSystem {
InputSystem(void);
InputSystem(const InputSystem &) = delete;
Expand Down

0 comments on commit aa87150

Please sign in to comment.