axiosengine 

axiosengine Commit Details


Date:2012-05-26 18:36:11 (12 years 4 months ago)
Author:Natalie Adams
Branch:master
Commit:e9e97dae39ba23f4ac1116486043b749bfda599b
Parents: 1c897e75303b550dd8be48c73d2f28ed45189fec
Message:Updating support for XNACC Note: It is only for Windows currently

--HG--
branch : xnacc-integration
Changes:

File differences

axios/Axios_Windows.csproj.user
11
22
33
4
4
55
66
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<ProjectView>ShowAllFiles</ProjectView>
<ProjectView>ProjectFiles</ProjectView>
</PropertyGroup>
</Project>
axios/Axios_settings.cs
9191
9292
9393
94
9495
9596
9697
* - Fixing bug where loadrecentangleitem wouldn't be called by Gleed2D library
* - Changing AxiosTitleFile.GetStream() to return Stream instead of FileStream
* - Changing IAxiosFile.GetStream() to return Stream instead of FileStream
* - Adding support for XNACC
*
*/
#endregion
axios/ScreenSystem/InputState.cs
1515
1616
1717
18
19
20
21
22
1823
1924
2025
......
3742
3843
3944
45
46
47
4048
49
4150
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
4285
4386
4487
......
270313
271314
272315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
273337
274338
275339
using FarseerPhysics.SamplesFramework;
using Microsoft.Xna.Framework.Graphics;
using System;
#if WINDOWS
using XNACC.BaseTypes;
#endif
using System.Linq;
namespace GameStateManagement
{
/// query methods for high level input actions such as "move up through the menu"
/// or "pause the game".
/// </summary>
#if WINDOWS
public class InputState : IConsoleKeyboard
#else
public class InputState
#endif
{
#if WINDOWS
#region XNACC
/*
* These are needed for XNACC
* -- Nathan Adams [adamsna@datanethost.net] - 5/26/2012
*/
private KeyboardState KeyState;
private List<Keys> newlyPressedKeys = new List<Keys>();
private List<Keys> heldKeys = new List<Keys>();
private Keys[] oldPressedKeys;
private Keys[] newPressedKeys;
public KeyboardState CurrentKeyboardState
{
get { return KeyState; }
}
public IList<Keys> NewlyPressedKeys
{
get { return newlyPressedKeys; }
}
public IList<Keys> HeldKeys
{
get { return heldKeys; }
}
/*
* End XNACC variables
*/
#endregion
#endif
public const int MaxInputs = 4;
public readonly KeyboardState[] CurrentKeyboardStates;
/// </summary>
public void Update(GameTime gameTime)
{
#if WINDOWS
#region XNACC
KeyState = Keyboard.GetState();
oldPressedKeys = newPressedKeys;
newPressedKeys = KeyState.GetPressedKeys();
newlyPressedKeys.Clear();
heldKeys.Clear();
foreach (Keys key in newPressedKeys)
{
if (oldPressedKeys.Contains(key))
heldKeys.Add(key);
else
newlyPressedKeys.Add(key);
}
#endregion
#endif
//PlayerIndex p;
_lastMouseState = _currentMouseState;
if (_handleVirtualStick)
axios/XNACC/CommandConsoleBase.cs
1111
1212
1313
14
14
1515
1616
1717
......
7171
7272
7373
74
74
7575
7676
7777
using System.IO;
using System.ComponentModel;
using System.Reflection;
using JRTS.XNA.Console.BaseTypes;
using XNACC.BaseTypes;
using System.Diagnostics;
#endif
#endregion
//NA: Seriously Microsoft?
#if WINDOWS
/// <summary>Namespace that contains code related to the XNACC (CommandConsole) component</summary>
namespace JRTS.XNA.Console
namespace XNACC.Console
{
/// <summary>Base functionality of the XNACC (CommandConsole) component</summary>
public class CommandConsoleBase : DrawableGameComponent
axios/XNACC/CommandConsoleBaseSharedTypes.cs
66
77
88
9
9
1010
1111
1212
#if WINDOWS
/// <summary>Namespace that contains shared types related to the XNACC (CommandConsole) component</summary>
namespace JRTS.XNA.Console.BaseTypes
namespace XNACC.BaseTypes
{
#region IConsoleKeyboard
/// <summary>Basic keyboard/input functionality required by the CommandConsole(Base) class</summary>

Archive Download the corresponding diff file

Branches

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