This commit is contained in:
nastys
2019-07-30 13:48:28 +02:00
parent 25f819bdfb
commit 998f4274a5
157 changed files with 0 additions and 0 deletions
@@ -0,0 +1,33 @@
#include "XinputBinding.h"
#include "..\Xinput\Xinput.h"
namespace TLAC::Input
{
XinputBinding::XinputBinding(BYTE keycode) : Keycode(keycode)
{
}
XinputBinding::~XinputBinding()
{
}
bool XinputBinding::IsDown()
{
return Xinput::GetInstance()->IsDown(Keycode);
}
bool XinputBinding::IsTapped()
{
return Xinput::GetInstance()->IsTapped(Keycode);
}
bool XinputBinding::IsReleased()
{
return Xinput::GetInstance()->IsReleased(Keycode);
}
bool XinputBinding::IsDoubleTapped()
{
return Xinput::GetInstance()->IsDoubleTapped(Keycode);
}
}