diff --git a/wasp/apps/testapp.py b/wasp/apps/testapp.py index 9f512f1..0ab33a3 100644 --- a/wasp/apps/testapp.py +++ b/wasp/apps/testapp.py @@ -15,7 +15,7 @@ class TestApp(): """Activate the application.""" self.on_screen = ( -1, -1, -1, -1, -1, -1 ) self.draw(effect) - system.request_event(manager.EVENT_TOUCH | manager.EVENT_SWIPE_LEFTRIGHT) + system.request_event(manager.EVENT_TOUCH | manager.EVENT_SWIPE_UPDOWN) def background(self): """De-activate the application (without losing state).""" diff --git a/wasp/manager.py b/wasp/manager.py index 3dafebe..055b7d1 100644 --- a/wasp/manager.py +++ b/wasp/manager.py @@ -55,12 +55,12 @@ class Manager(object): """ app_list = self.applications - if direction == DOWN: + if direction == LEFT: i = app_list.index(self.app) + 1 if i >= len(app_list): i = 0 self.switch(app_list[i]) - elif direction == UP: + elif direction == RIGHT: i = app_list.index(self.app) - 1 if i < 0: i = len(app_list)-1