osu-ds/source/Helpers/InputHelper.cpp
KonPet 183228e28e Change stuff to make it build
Removed the arm7 section
Changed the makefile to only use the arm9 stuff
Epicpkmn: Fix source/Graphics/GraphicsManager.cpp

Co-Authored-By: Pk11 <epicpkmn11@outlook.com>
Co-Authored-By: Kaisaan <34224128+Kaisaan@users.noreply.github.com>
2021-10-21 00:03:39 +02:00

30 lines
380 B
C++

#include "InputHelper.h"
touchPosition InputHelper::mTouch;
bool InputHelper::KeyDown(int key)
{
return keysDown() & key;
}
bool InputHelper::KeyHeld(int key)
{
return keysHeld() & key;
}
bool InputHelper::KeyUp(int key)
{
return keysUp() & key;
}
touchPosition& InputHelper::TouchRead()
{
touchRead(&mTouch);
mTouch.px *= 2.5;
mTouch.py *= 2.5;
return mTouch;
}