(sorry for not doing this myself, I don't have a zune right now so if i wrote it i couldn't test it).
In the file \Systems - Managers\InputWrapper.cs line 19 to 30 where it says:
Code:
public struct ThumbStick
{
public float X;
public float Y;
public void Update(Vector2 vector)
{
X = vector.X;
Y = vector.Y;
// ADD your custom logic here
}
}
This is not the ideal situation, however it should let people who have a Zune 30 play the game.
The code should be something along the lines of:
Code:
if (Microsoft.Xna.Framework.Input.GamePad.GetState(PlayerIndex.One).DPad.[Direction] == Microsoft.Xna.Framework.Input.ButtonState.Pressed)
{
X or Y = 1 or -1; depending on which button
}
Hope this helps, sorry I can't impliment it and more importantly test it myself right now. Whoever impliments it (after testing it) feel free to submit a patch to the project.
well, i added all of that code and it works pretty well
I don't see any need to do it differently, I mean it does everything that the d-pad should do. You don't need to worry about sensitivity like you do for touch or anything.
add this to the area stated by Pauliver
Code:
if (Microsoft.Xna.Framework.Input.GamePad.GetState(PlayerIndex.One).DPad.Down == Microsoft.Xna.Framework.Input.ButtonState.Pressed)
{
Y -=1;
}
if (Microsoft.Xna.Framework.Input.GamePad.GetState(PlayerIndex.One).DPad.Up == ButtonState.Pressed)
{
Y += 1;
}
if (Microsoft.Xna.Framework.Input.GamePad.GetState(PlayerIndex.One).DPad.Left == ButtonState.Pressed)
{
X -= 1;
}
if (Microsoft.Xna.Framework.Input.GamePad.GetState(PlayerIndex.One).DPad.Right == ButtonState.Pressed)
{
X += 1;
}
That would be excellent if I knew exactly where to place it.
Go to the Systems - Managers folder. under that is inputwrapper.cs. Open that
Expand the region PINPUT near the top. under that you'll find the public Struct Thumbstick, and under that is the update, add that code to the update method
Go to the Systems - Managers folder. under that is inputwrapper.cs. Open that
Expand the region PINPUT near the top. under that you'll find the public Struct Thumbstick, and under that is the update, add that code to the update method
Whoa, this is a huuuge advancement over the last version. And kudos to Arthur also, the art is really sweet. Amazing game man can't wait until the wireless multiplayer, and all of that other good stuff gets put in
Me either, this will be a sweet 2 v 2 for when you're bored... i can't wait for the future of zune games... if we could get an rpg with coop that would be so amazingly fun... just 2 people playing an rpg wirelessly....