CocosSharp.CCApplication.Update Method
Method invoked during each iteration of the game run loop.

Syntax

public override void Update (Microsoft.Xna.Framework.GameTime gameTime)

Parameters

gameTime
Snapshot of the game timing state expressed in values that can be used both by variable-step (real time) or fixed-step (game time) games.

Remarks

This method is invoked on each iteration of the game loop, and receives the gameTime parameter. This method processes inputs events and passes the events to the running windows owned by the CCApplication.

The pause state (controlled by the method CCApplication.PauseGame) determines whether the windows receive the Update method call or not.

This method dispatches touches, keyboard and mouse events to the window regardless of the paused state.

Requirements

Namespace: CocosSharp
Assembly: CocosSharp (in CocosSharp.dll)