Class: Rbindkeys::KeyBind
- Inherits:
-
Object
- Object
- Rbindkeys::KeyBind
- Defined in:
- lib/rbindkeys/key_bind.rb
Instance Attribute Summary collapse
-
#input ⇒ Object
readonly
Returns the value of attribute input.
-
#input_recovery ⇒ Object
readonly
when a signal of any input release event was accepted, if @inputs_recovery is true, outputs are released and other inputs are pressed, if @inputs_recovery is false or nil, outputs are released.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
-
#initialize(input, output, opt = {}) ⇒ KeyBind
constructor
A new instance of KeyBind.
Constructor Details
#initialize(input, output, opt = {}) ⇒ KeyBind
Returns a new instance of KeyBind.
15 16 17 18 19 |
# File 'lib/rbindkeys/key_bind.rb', line 15 def initialize input, output, opt = {} @input = input @output = output @input_recovery = opt[:input_recovery] end |
Instance Attribute Details
#input ⇒ Object (readonly)
Returns the value of attribute input.
6 7 8 |
# File 'lib/rbindkeys/key_bind.rb', line 6 def input @input end |
#input_recovery ⇒ Object (readonly)
when a signal of any input release event was accepted, if @inputs_recovery is true, outputs are released and other inputs are pressed, if @inputs_recovery is false or nil, outputs are released.
13 14 15 |
# File 'lib/rbindkeys/key_bind.rb', line 13 def input_recovery @input_recovery end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
8 9 10 |
# File 'lib/rbindkeys/key_bind.rb', line 8 def output @output end |