[Android-overlay] Had the action reversed.

This commit is contained in:
Ryan Houdek 2013-11-13 16:36:30 -06:00
parent 2a23bdde6f
commit 1942d79c5b
1 changed files with 1 additions and 5 deletions

View File

@ -125,11 +125,7 @@ namespace ButtonManager
}
void TouchEvent(int button, int action)
{
// Actions
// 0 is press
// 1 is let go
// 2 is move
m_buttons[button]->SetState(action ? BUTTON_RELEASED : BUTTON_PRESSED);
m_buttons[button]->SetState(action ? BUTTON_PRESSED : BUTTON_RELEASED);
}
void GamepadEvent(std::string dev, int button, int action)