def each
      begin
        loop do
          event = read
          next unless event.type == 1
          next unless event.value == 1
          yield event
        end
      rescue Errno::ENODEV
      end
    end
def each
      begin
        loop do
          event = read
          next unless event.type == 1
          next unless event.value == 1
          yield event
        end
      rescue Errno::ENODEV
      end
    end
Expose each event to a block of code as it comes in.