From fb1fc96bafe80f23c46f1504966a28ee46b4743a Mon Sep 17 00:00:00 2001 From: Ander <9and3r@gmail.com> Date: Wed, 19 Nov 2014 22:42:41 +0100 Subject: [PATCH] Xevent --- mopidy_touchscreen/main_screen.py | 1 + mopidy_touchscreen/touch_screen.py | 1 + 2 files changed, 2 insertions(+) diff --git a/mopidy_touchscreen/main_screen.py b/mopidy_touchscreen/main_screen.py index 07d27fc..d6b49be 100644 --- a/mopidy_touchscreen/main_screen.py +++ b/mopidy_touchscreen/main_screen.py @@ -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": diff --git a/mopidy_touchscreen/touch_screen.py b/mopidy_touchscreen/touch_screen.py index 607b718..901487e 100644 --- a/mopidy_touchscreen/touch_screen.py +++ b/mopidy_touchscreen/touch_screen.py @@ -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']