Defined up downbuttons' hold constants.
This commit is contained in:
committed by
s.aydarov
parent
11b4909f39
commit
2bbfeb8940
@@ -57,7 +57,11 @@ public:
|
||||
{
|
||||
bool upButtonHold = m_UpButton.IsHolded();
|
||||
bool downButtonHold = m_DownButton.IsHolded();
|
||||
return (upButtonHold - downButtonHold);
|
||||
if(upButtonHold)
|
||||
return BTN_UP_HOLDED;
|
||||
else if(downButtonHold)
|
||||
return BTN_DOWN_HOLDED;
|
||||
return BTN_DOWN_UP_NOT_HOLDED;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
Reference in New Issue
Block a user