mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
mobile: Fix comments about deprecation
This commit is contained in:
parent
2ff0ccf4cc
commit
f5a514646d
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user