Method: GameWindow#button_up

Defined in:
lib/lib/user_interface/game_window.rb

#button_up(key) ⇒ Object

Start processing the pushed button



48
49
50
51
52
53
54
55
56
57
58
59
# File 'lib/lib/user_interface/game_window.rb', line 48

def button_up(key)
  case key
  when Gosu::KB_ESCAPE then
    self.close
  when Gosu::KB_BACKSPACE then
    reset
  when Gosu::KB_TAB then
    switch_debug!
  else
    @button = key
  end
end