View Single Post
Old 05-22-2008, 03:09 PM   #42 (permalink)
Pauliver
Zuner
 
Join Date: May 2008
Posts: 61
Pauliver is on a distinguished road
Send a message via AIM to Pauliver Send a message via MSN to Pauliver
Default

How To: Zune 30 Controls.

(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.



Pauliver is offline   Reply With Quote