Class: Gosu::GosuSurfaceView

Inherits:
JavaImports::GLSurfaceView
  • Object
show all
Defined in:
lib/gosu_android/main-window.rb

Instance Method Summary collapse

Instance Method Details

#atributes(window, input) ⇒ Object



38
39
40
41
# File 'lib/gosu_android/main-window.rb', line 38

def atributes(window, input)
  @window = window
  @input = input
end

#onTouchEvent(event) ⇒ Object



43
44
45
46
47
# File 'lib/gosu_android/main-window.rb', line 43

def onTouchEvent(event)
  super
  @input.feed_touch_event(event)
  return true
end

#onWindowFocusChanged(has_focus) ⇒ Object



49
50
51
52
53
54
55
# File 'lib/gosu_android/main-window.rb', line 49

def onWindowFocusChanged(has_focus)
  super
  if(@window)
    @window.focus_changed(has_focus, self.get_width, self.get_height)
  end
  return true
end