Ander 11 tahun lalu
induk
melakukan
fb1fc96baf
2 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 1 0
      mopidy_touchscreen/main_screen.py
  2. 1 0
      mopidy_touchscreen/touch_screen.py

+ 1 - 0
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":

+ 1 - 0
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']