From f5a514646daf208bba138cb3537f0204c2d19aa6 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 18 Aug 2019 18:03:53 +0900 Subject: [PATCH] mobile: Fix comments about deprecation --- mobile/compat.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/mobile/compat.go b/mobile/compat.go index 567aba391..cd5b26fa7 100644 --- a/mobile/compat.go +++ b/mobile/compat.go @@ -35,6 +35,8 @@ func (g *game) Layout(viewWidth, viewHeight int) (screenWidth, screenHeight int) 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. // // 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 } +// Update is deprecated as of 1.10.0-alpha. Use `ebitenmobile` command and `SetGame` instead. +// // Update updates and renders the game. // This should be called on every frame. // @@ -75,6 +79,8 @@ func Update() error { return ebitenmobileview.Update() } +// UpdateTouchesOnAndroid is deprecated as of 1.10.0-alpha. Use `ebitenmobile` command instead. +// // UpdateTouchesOnAndroid updates the touch state on Android. // // 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) } +// UpdateTouchesOnIOS is deprecated as of 1.10.0-alpha. Use `ebitenmobile` command instead. +// // UpdateTouchesOnIOS updates the touch state on iOS. // // This should be called with touch handlers of UIViewController like this: