First commit

This commit is contained in:
nastys
2019-07-06 22:51:56 +02:00
commit 321ecdf8b7
162 changed files with 19606 additions and 0 deletions
@@ -0,0 +1,29 @@
#include "Ds4Binding.h"
namespace TLAC::Input
{
#define Ds4InstanceCheckDefault(checkFunc) (DualShock4::InstanceInitialized() ? DualShock4::GetInstance()->checkFunc : false)
Ds4Binding::Ds4Binding(Ds4Button button) : Button(button)
{
}
Ds4Binding::~Ds4Binding()
{
}
bool Ds4Binding::IsDown()
{
return Ds4InstanceCheckDefault(IsDown(Button));
}
bool Ds4Binding::IsTapped()
{
return Ds4InstanceCheckDefault(IsTapped(Button));
}
bool Ds4Binding::IsReleased()
{
return Ds4InstanceCheckDefault(IsReleased(Button));
}
}