module HID
Constants
- VERSION
Attributes
configuration[RW]
Public Class Methods
configure() { |configuration| ... }
click to toggle source
# File lib/hid.rb, line 22 def configure yield configuration end
identify(unknown, type=nil)
click to toggle source
# File lib/hid.rb, line 8 def identify(unknown, type=nil) identity = find unknown, type return identity if identity record unknown, type end
map(unknown, identity, type=nil)
click to toggle source
# File lib/hid.rb, line 14 def map(unknown, identity, type=nil) configuration.identifier.map unknown, identity, type end
recorded(type=nil)
click to toggle source
# File lib/hid.rb, line 18 def recorded(type=nil) configuration.recorder.recorded type end
Private Class Methods
find(unknown, type)
click to toggle source
# File lib/hid.rb, line 28 def find(unknown, type) configuration.identifier.find unknown, type end
record(unknown, type)
click to toggle source
# File lib/hid.rb, line 32 def record(unknown, type) configuration.recorder.record unknown, type end