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



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

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

#onKeyDown(keyCode, event) ⇒ Object



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

def onKeyDown(keyCode, event)
  super
  @input.feed_key_event(keyCode, event)
end

#onKeyUp(keyCode, event) ⇒ Object



55
56
57
58
# File 'lib/gosu_android/main-window.rb', line 55

def onKeyUp(keyCode, event)
  super
  @input.feed_key_event(keyCode, event)
end

#onTouchEvent(event) ⇒ Object



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

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

#onWindowFocusChanged(has_focus) ⇒ Object



60
61
62
63
64
65
# File 'lib/gosu_android/main-window.rb', line 60

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