summaryrefslogtreecommitdiff
path: root/src/mouseGet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mouseGet.cpp')
-rw-r--r--src/mouseGet.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/mouseGet.cpp b/src/mouseGet.cpp
index 503757e..f26e800 100644
--- a/src/mouseGet.cpp
+++ b/src/mouseGet.cpp
@@ -1,32 +1,32 @@
#include "FLD.hpp"
FLD::InputState
-FLD::mouseGet(SDL_Scancode sc) const
+FLD::mouseGet(Uint8 btn) const
{
- return mousestates[sc];
+ return mousestates[btn];
}
bool
-FLD::mouseDown(SDL_Scancode sc) const
+FLD::mouseDown(Uint8 btn) const
{
- const auto state = mouseGet(sc);
+ const auto state = mouseGet(btn);
return (state == InputState::Down || state == InputState::Press);
}
bool
-FLD::mouseUp(SDL_Scancode sc) const
+FLD::mouseUp(Uint8 btn) const
{
- return !mouseDown(sc);
+ return !mouseDown(btn);
}
bool
-FLD::mousePressed(SDL_Scancode sc) const
+FLD::mousePressed(Uint8 btn) const
{
- return (mouseGet(sc) == InputState::Press);
+ return (mouseGet(btn) == InputState::Press);
}
bool
-FLD::mouseReleased(SDL_Scancode sc) const
+FLD::mouseReleased(Uint8 btn) const
{
- return (mouseGet(sc) == InputState::Release);
+ return (mouseGet(btn) == InputState::Release);
}