private void OnUpdate(object sender, GameTimerEventArgs e) { if (isClose) { return; } if (process != null) { process.Load(); process.Calls(); elapsedTime = e.ElapsedTime.Ticks / 10000L; process.InputUpdate(elapsedTime); ActionControl.Update(elapsedTime); timerContext.millisSleepTime = sleepTime; timerContext.timeSinceLastUpdate = elapsedTime; process.RunTimer(timerContext); process.Unload(); } if (useXNAListener) { sl_listener.Update(GamePage, e); } }
protected override void Update(GameTime gameTime) { if (isClose) { return; } if (process != null) { process.Load(); process.Calls(); elapsedTime = gameTime.ElapsedGameTime.Ticks / 10000L; process.InputUpdate(elapsedTime); ActionControl.Update(elapsedTime); timerContext.millisSleepTime = sleepTime; timerContext.timeSinceLastUpdate = elapsedTime; process.RunTimer(timerContext); process.Unload(); } if (useXNAListener) { xna_listener.Update(this, gameTime); } if (UseXNA) { base.Update(gameTime); } }
public void OnUpdate(Microsoft.Xna.Framework.GameTime gameTime) { if (m_onRunning) { m_process.InputUpdate(gameTime.ElapsedGameTime.Ticks / 10000L); } }