class RubyHid::Device::Event
open Event
class and add some convenience methods
Holds the un-packed data parsed from the raw input from the buzz controller.
Public Instance Methods
time()
click to toggle source
# File lib/ruby_hid/device.rb, line 65 def time; Time.at(tv_sec) end
to_s()
click to toggle source
# File lib/ruby_hid/device.rb, line 69 def to_s type_s = type.to_s code_s = code.to_s value_s = value.to_s "#{time.iso8601} type: #{type_s} code: #{code_s} value: #{value_s}" end