Use Will's scrolling support to add next phase (scroll up) and interrupt (scroll down) in the duel state.
This commit is contained in:
@@ -855,3 +855,13 @@ void GameStateDuel::ButtonPressed(int controllerId, int controlId)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
void GameStateDuel::OnScroll(int inXVelocity, int inYVelocity)
|
||||
{
|
||||
if (abs(inYVelocity) > 300)
|
||||
{
|
||||
bool flickUpwards = (inYVelocity < 0);
|
||||
mEngine->HoldKey_NoRepeat(flickUpwards ? JGE_BTN_PREV : JGE_BTN_SEC);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user