I have compiled the "Input" sample code and it also exhibits the same issue. onSwipe does not work for UP and DOWN.
I have been pulling my hair out for the past few hours trying to work out what I am doing wrong. It all works great on the simulator.
class BaseInputDelegate extends Ui.InputDelegate
{
function onSwipe(evt) {
if ( (evt.getDirection() == Ui.SWIPE_UP) || (evt.getDirection() == Ui.SWIPE_LEFT) ) {
c25KView.changePage(1);
} else if ( (evt.getDirection() == Ui.SWIPE_DOWN) || (evt.getDirection() == Ui.SWIPE_RIGHT) ) {
c25KView.changePage(0);
}
}
}
Initially I just had UP and DOWN in the above if/else statement and nothing was working, once I added LEFT and RIGHT, it starts to work. I have confirmed I never receive an onSwipe when swiping up or down.
Is there something silly I am doing? or does it just not work?