Compare commits
No commits in common. "master" and "v0.0.3" have entirely different histories.
|
@ -22,7 +22,6 @@ Control your MPD:
|
||||||
require 'librmpd'
|
require 'librmpd'
|
||||||
lirc = LIRC::Client.new
|
lirc = LIRC::Client.new
|
||||||
mpd = MPD.new 'localhost', 6600
|
mpd = MPD.new 'localhost', 6600
|
||||||
mpd.connect
|
|
||||||
lirc.each do |event|
|
lirc.each do |event|
|
||||||
case event.name
|
case event.name
|
||||||
when "play"
|
when "play"
|
||||||
|
|
|
@ -8,7 +8,7 @@ module LIRC
|
||||||
end
|
end
|
||||||
|
|
||||||
def next
|
def next
|
||||||
Event.new @sock.gets
|
Event.new @sock.readline
|
||||||
end
|
end
|
||||||
|
|
||||||
def each_event
|
def each_event
|
||||||
|
|
Loading…
Reference in a new issue