Longpress to change next/previous track

This commit is contained in:
9and3r
2015-05-24 16:08:06 +02:00
parent 4e2c548f35
commit 1ea6ba11b2
4 changed files with 36 additions and 13 deletions

View File

@@ -198,7 +198,7 @@ class ScreenManager():
event.current_pos)
return self.click_on_objects(objects, event)
else:
if event.type == InputManager.key:
if event.type == InputManager.key and not event.longpress:
dir = event.direction
if dir == InputManager.right or dir == InputManager.left:
if not self.screens[self.current_screen]\