More progress in updating the GSM

--HG--
branch : axios-newgsm
This commit is contained in:
nathan@daedalus
2012-04-15 19:17:34 -05:00
parent a93df07c6e
commit 2277056e6b
4 changed files with 208 additions and 10 deletions

View File

@@ -2,6 +2,7 @@
using FarseerPhysics.Dynamics;
using FarseerPhysics.SamplesFramework;
using Microsoft.Xna.Framework;
using GameStateManagement;
namespace Axios.Engine
{
@@ -46,12 +47,12 @@ namespace Axios.Engine
}
public virtual void HandleInput(AxiosGameScreen gameScreen, InputHelper input, GameTime gameTime)
public virtual void HandleInput(AxiosGameScreen gameScreen, InputState input, GameTime gameTime)
{
}
public virtual void HandleCursor(AxiosGameScreen gameScreen, InputHelper input)
public virtual void HandleCursor(AxiosGameScreen gameScreen, InputState input)
{
}

View File

@@ -210,7 +210,7 @@ namespace Axios.Engine
}
public override void HandleCursor(InputHelper input)
public override void HandleCursor(InputState input)
{
base.HandleCursor(input);
HandleMouseEvents(input);
@@ -219,7 +219,7 @@ namespace Axios.Engine
g.HandleCursor(this, input);
}
private void HandleMouseEvents(InputHelper input)
private void HandleMouseEvents(InputState input)
{
Vector2 position = this.Camera.ConvertScreenToWorld(input.Cursor);
Fixture fix = this.World.TestPoint(position);