Merge pull request #114 from teto/change_mpd_song_on_scroll

Mousewheel up will play next song, down will play previous song
This commit is contained in:
enkore 2014-09-05 12:13:25 +02:00
commit f323917701

View File

@ -104,3 +104,15 @@ class MPD(IntervalModule):
self._mpd_command(self.s, "next") self._mpd_command(self.s, "next")
except Exception as e: except Exception as e:
pass pass
def on_upscroll(self):
try:
self._mpd_command(self.s, "next")
except Exception as e:
pass
def on_downscroll(self):
try:
self._mpd_command(self.s, "previous")
except Exception as e:
pass