mirror of
https://github.com/Febbweiss/mopidy-touchscreen.git
synced 2026-03-04 22:25:39 +00:00
Xevent
This commit is contained in:
@@ -235,6 +235,7 @@ class MainScreen():
|
|||||||
value = self.touch_text_manager.get_touch_object(
|
value = self.touch_text_manager.get_touch_object(
|
||||||
key).get_pos_value(event.current_pos) * 1000
|
key).get_pos_value(event.current_pos) * 1000
|
||||||
self.core.playback.seek(value)
|
self.core.playback.seek(value)
|
||||||
|
|
||||||
elif key == "previous":
|
elif key == "previous":
|
||||||
self.core.playback.previous()
|
self.core.playback.previous()
|
||||||
elif key == "next":
|
elif key == "next":
|
||||||
|
|||||||
@@ -25,6 +25,7 @@ class TouchScreen(pykka.ThreadingActor, core.CoreListener):
|
|||||||
self.fullscreen = config['touchscreen']['fullscreen']
|
self.fullscreen = config['touchscreen']['fullscreen']
|
||||||
os.environ["SDL_FBDEV"] = "/dev/fb1"
|
os.environ["SDL_FBDEV"] = "/dev/fb1"
|
||||||
os.environ["SDL_MOUSEDEV"] = "/dev/input/touchscreen"
|
os.environ["SDL_MOUSEDEV"] = "/dev/input/touchscreen"
|
||||||
|
os.environ["TSLIB TSDEVICE"] = "/dev/input/eventX"
|
||||||
os.environ["SDL_MOUSEDRV"] = "TSLIB"
|
os.environ["SDL_MOUSEDRV"] = "TSLIB"
|
||||||
pygame.init()
|
pygame.init()
|
||||||
self.cursor = config['touchscreen']['cursor']
|
self.cursor = config['touchscreen']['cursor']
|
||||||
|
|||||||
Reference in New Issue
Block a user