axiosengine 

axiosengine Commit Details


Date:2015-01-04 16:40:19 (9 years 9 months ago)
Author:Natalie Adams
Branch:master
Commit:e23503cd007430a84fe718634598f4f850cae726
Parents: d924498cb603cf18dd465dc59dd4b5e14876c59e
Message:Adding Deactivate event for when the screen leaves focus Added flag to enable/disable moving camera with gamepad

Changes:

File differences

axios/Axios_settings.cs
140140
141141
142142
143
144
143145
144146
145147
* - Adding dispose methods to AxiosFile objects
* - Adding extended log to AxiosLog
* - Fixing issue in CommandConsole where the first line would not be displayed
* - Adding Deactivate event for when the screen leaves focus
* - Added flag to enable/disable moving camera with gamepad
*
*/
#endregion
axios/Engine/AxiosGameScreen.cs
330330
331331
332332
333
333
334334
335335
336
336337
337338
338339
......
508509
509510
510511
511
512512
513513
514514
......
538538
539539
540540
541
541542
542543
543544
public override void Update(GameTime gameTime, bool otherScreenHasFocus, bool coveredByOtherScreen)
{
if (otherScreenHasFocus)
if (otherScreenHasFocus && !screenHidden)
{
screenHidden = true;
this.Deactivate();
}
if (screenHidden && !otherScreenHasFocus)
{
//this.IsExiting = true;
//System.Diagnostics.Debugger.Break();
base.Deactivate();
ScreenState = GameStateManagement.ScreenState.TransitionOff;
AxiosLog.Instance.AddLine("Memory usage before cleanup: " + GC.GetTotalMemory(true).ToString(), LoggingFlag.DEBUG);
foreach (AxiosGameObject g in _gameObjects)
}
#endif
}
axios/ScreenSystem/InputState.cs
104104
105105
106106
107
107108
108109
109110
......
391392
392393
393394
394
395
395396
396397
397398
* -- Nathan Adams [adamsna@datanethost.net] - 4/12/2012
*/
public bool MoveCursorWithController = false;
/*
* Adding variables for the cursor
// Update cursor
Vector2 oldCursor = _cursor;
if (CurrentGamePadStates[0].IsConnected && CurrentGamePadStates[0].ThumbSticks.Left != Vector2.Zero)
if (CurrentGamePadStates[0].IsConnected && CurrentGamePadStates[0].ThumbSticks.Left != Vector2.Zero && MoveCursorWithController)
{
Vector2 temp = CurrentGamePadStates[0].ThumbSticks.Left;
_cursor += temp * new Vector2(300f, -300f) * (float)gameTime.ElapsedGameTime.TotalSeconds;

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.06437s using 14 queries.