# File window.rb, line 179 def update checkFocus if @leftdrag.starting if(Gosu::distance(@leftdrag.start_x, @leftdrag.start_y, mouse_x, mouse_y) > 5) @leftdrag.confirmStart end elsif @rightdrag.starting if(Gosu::distance(@rightdrag.start_x, @rightdrag.start_y, mouse_x, mouse_y) > 5) @rightdrag.confirmStart end end if @timer>100 @timer=0 else @timer+=1 end @state.update @framedrawn = false end