From ef31192f33e2319bb46e6fa038dfb1a2440cdbe6 Mon Sep 17 00:00:00 2001 From: Anthony Calosa Date: Tue, 7 Feb 2017 16:59:19 +0800 Subject: [PATCH] modified flickleft for android if you flick/swipe left or right when the closedhand option is visible in Android, you simulate scroll up/down. example scenario at opponent's turn with a spell on the stack, swipe down to interrupt then do something, if you open a zone like library or graveyard or exile and you want to interract from the zone there (like casting spell or doing ability from that zone, you can flick left or right to close that zone so you can tap for mana or any other extra costs for that spell, you can open the zone if possible just by tapping it like it used to.) --- projects/mtg/src/GameStateDuel.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/projects/mtg/src/GameStateDuel.cpp b/projects/mtg/src/GameStateDuel.cpp index 69221161c..71450aa11 100644 --- a/projects/mtg/src/GameStateDuel.cpp +++ b/projects/mtg/src/GameStateDuel.cpp @@ -1726,6 +1726,13 @@ void GameStateDuel::OnScroll(int inXVelocity, int inYVelocity) JButton trigger = (options[Options::REVERSETRIGGERS].number ? JGE_BTN_PREV : JGE_BTN_NEXT); mEngine->HoldKey_NoRepeat(trigger); } + else if(flickLeft && OptionClosedHand::VISIBLE == options[Options::CLOSEDHAND].number) + { +#if defined (ANDROID) + JButton trigger = (options[Options::REVERSETRIGGERS].number ? JGE_BTN_UP : JGE_BTN_DOWN); + mEngine->HoldKey_NoRepeat(trigger); +#endif + } } }