mobile: Fix comments about deprecation

This commit is contained in:
Hajime Hoshi 2019-08-18 18:03:53 +09:00
parent 2ff0ccf4cc
commit f5a514646d

View File

@ -35,6 +35,8 @@ func (g *game) Layout(viewWidth, viewHeight int) (screenWidth, screenHeight int)
return g.width, g.height return g.width, g.height
} }
// Start is deprecated as of 1.10.0-alpha. Use `ebitenmobile` command and `SetGame` instead.
//
// Start starts the game and returns immediately. // Start starts the game and returns immediately.
// //
// Different from ebiten.Run, this invokes only the game loop and not the main (UI) loop. // Different from ebiten.Run, this invokes only the game loop and not the main (UI) loop.
@ -59,6 +61,8 @@ func Start(f func(*ebiten.Image) error, width, height int, scale float64, title
return nil return nil
} }
// Update is deprecated as of 1.10.0-alpha. Use `ebitenmobile` command and `SetGame` instead.
//
// Update updates and renders the game. // Update updates and renders the game.
// This should be called on every frame. // This should be called on every frame.
// //
@ -75,6 +79,8 @@ func Update() error {
return ebitenmobileview.Update() return ebitenmobileview.Update()
} }
// UpdateTouchesOnAndroid is deprecated as of 1.10.0-alpha. Use `ebitenmobile` command instead.
//
// UpdateTouchesOnAndroid updates the touch state on Android. // UpdateTouchesOnAndroid updates the touch state on Android.
// //
// This should be called with onTouchEvent of GLSurfaceView like this: // This should be called with onTouchEvent of GLSurfaceView like this:
@ -112,6 +118,8 @@ func UpdateTouchesOnAndroid(action int, id int, x, y int) {
ebitenmobileview.UpdateTouchesOnAndroid(action, id, x, y) ebitenmobileview.UpdateTouchesOnAndroid(action, id, x, y)
} }
// UpdateTouchesOnIOS is deprecated as of 1.10.0-alpha. Use `ebitenmobile` command instead.
//
// UpdateTouchesOnIOS updates the touch state on iOS. // UpdateTouchesOnIOS updates the touch state on iOS.
// //
// This should be called with touch handlers of UIViewController like this: // This should be called with touch handlers of UIViewController like this: