lib/ruby_goes_rogue/window.rb
# Called when a button was pressed.
# This method is called before {#update}.
# @return [void]
Called when a button was pressed.
This method is called before {#update}.
Called when a button was pressed . This method is called before { #update } .
def button_down(id)
      case id
      when Gosu::KbEscape
        close
      end
    end
def button_down ( id ) case id when Gosu :: KbEscape close end end
Called when a button was pressed.
Called when a button was pressed .
None
void
id
<not_specific>