[Android-overlay] Had the action reversed.
This commit is contained in:
parent
2a23bdde6f
commit
1942d79c5b
|
@ -125,11 +125,7 @@ namespace ButtonManager
|
||||||
}
|
}
|
||||||
void TouchEvent(int button, int action)
|
void TouchEvent(int button, int action)
|
||||||
{
|
{
|
||||||
// Actions
|
m_buttons[button]->SetState(action ? BUTTON_PRESSED : BUTTON_RELEASED);
|
||||||
// 0 is press
|
|
||||||
// 1 is let go
|
|
||||||
// 2 is move
|
|
||||||
m_buttons[button]->SetState(action ? BUTTON_RELEASED : BUTTON_PRESSED);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void GamepadEvent(std::string dev, int button, int action)
|
void GamepadEvent(std::string dev, int button, int action)
|
||||||
|
|
Loading…
Reference in New Issue