Module: Gametel::Platforms::Button

Included in:
BrazenheadPlatform
Defined in:
lib/gametel/platforms/brazenhead/button.rb

Instance Method Summary collapse

Instance Method Details

#get_button_by_index(index, &block) ⇒ Object



6
7
8
9
10
11
# File 'lib/gametel/platforms/brazenhead/button.rb', line 6

def get_button_by_index(index, &block)
  chain_calls do |device|
    device.get_button index, :variable => '@@the_button@@'
    block.call device if block
  end
end

#get_button_by_text(text, &block) ⇒ Object



13
14
15
16
17
18
# File 'lib/gametel/platforms/brazenhead/button.rb', line 13

def get_button_by_text(text, &block)
  chain_calls do |device|
    device.get_button text, :variable => '@@the_button@@'
    block.call device if block
  end
end