Hi guys, can someone fix my code because my button monitoring code won't work :/
Code:
namespace Buttons
{
int
DPADUp = 0x34,
DPADDown = 0x38,
DPADLeft = 0x3C,
DPADRight = 0x40;
};
bool ButtonPressed(int Client, int Button)
{
if (*(int*)ReadInt(0xF0A7CC + (Client * 0x5808), 1) == Button)
return true;
else return false;
}
void thread_entry(uint64_t arg)
{
for(;;)
{
if (ButtonPressed(0, Buttons::DPADUp) && InGame() == true)
{
G_Client(0, 0x18);
G_Client(0, 0x43C);
}
}
}