Method: LUIT::LUITElement#update

Defined in:
lib/luit.rb

#update(x = 0, y = 0) ⇒ Object



70
71
72
73
74
75
76
77
78
79
# File 'lib/luit.rb', line 70

def update(x = 0, y = 0)
  if Gosu::button_down?(Gosu::MsLeft) or LUIT.touchDown
    if !@msDown
      button_down(Gosu::MsLeft)
    end
    @msDown = true
  else
    @msDown = false
  end
end