This commit is contained in:
Ander
2014-11-19 22:42:41 +01:00
parent da40431dda
commit fb1fc96baf
2 changed files with 2 additions and 0 deletions

View File

@@ -235,6 +235,7 @@ class MainScreen():
value = self.touch_text_manager.get_touch_object(
key).get_pos_value(event.current_pos) * 1000
self.core.playback.seek(value)
elif key == "previous":
self.core.playback.previous()
elif key == "next":

View File

@@ -25,6 +25,7 @@ class TouchScreen(pykka.ThreadingActor, core.CoreListener):
self.fullscreen = config['touchscreen']['fullscreen']
os.environ["SDL_FBDEV"] = "/dev/fb1"
os.environ["SDL_MOUSEDEV"] = "/dev/input/touchscreen"
os.environ["TSLIB TSDEVICE"] = "/dev/input/eventX"
os.environ["SDL_MOUSEDRV"] = "TSLIB"
pygame.init()
self.cursor = config['touchscreen']['cursor']