Class: Voicemeeter::MacroButton
Class Method Summary
collapse
Instance Method Summary
collapse
Boolean
Methods inherited from IRemote
#identifier, #set_multi, #to_s
Constructor Details
#initialize(remote, i) ⇒ MacroButton
Returns a new instance of MacroButton.
12
13
14
15
|
# File 'lib/voicemeeter/button.rb', line 12
def initialize(remote, i)
super
self.make_accessor_macrobutton :state, :stateonly, :trigger
end
|
Class Method Details
.make(remote, num_buttons) ⇒ Object
8
9
10
|
# File 'lib/voicemeeter/button.rb', line 8
def self.make(remote, num_buttons)
(0...num_buttons).map { |i| MacroButton.new(remote, i) }
end
|
Instance Method Details
#getter(mode) ⇒ Object
17
18
19
|
# File 'lib/voicemeeter/button.rb', line 17
def getter(mode)
@remote.get_buttonstatus(@index, mode)
end
|
#setter(set, mode) ⇒ Object
21
22
23
|
# File 'lib/voicemeeter/button.rb', line 21
def setter(set, mode)
@remote.set_buttonstatus(@index, set, mode)
end
|