Jump to content

XBOX360 controler input testing (C# XnA2.0)

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
kavery

kavery

    Learning Programmer

  • Members
  • PipPipPip
  • 38 posts
Hi Again,
My game design i have a splash screen where you need to press enter to continue, this project needs to be deployed to XBOX360 as according to assignment guidelines.

It all works on PC but when i tried to test it on the XBOX360 the input wasn't reading to carry on to menu. the input is in the update of a DrawableGameCompoent and looks like:


public override void Update(GameTime gameTime)

        {

//##############################################  

#if XBOX360

            if (GamePad.GetState(PlayerIndex.One).Buttons.Start == ButtonState.Pressed)

            {

                owner.DeActivate();

                Enabled = false;

                Visible = false;

                creditsOn = true;

            }

                               

#else

            if (Keyboard.GetState().IsKeyDown(Keys.Enter))

            {

                owner.DeActivate();

                Enabled = false;

                Visible = false;

                creditsOn = true;

            }

#endif

//##############################################


            info.Update(gameTime);


            base.Update(gameTime);

        }

owner is a class (GHAPFramework.GHAPScene) given by the toutor and is supposeable fully tested so the error must be in this code as far as i can tell

the code for te keyboard works perfectly, but the XBOX dose not. Any Guidance or suggestion would be very much appreacited

#2
kinarabi

kinarabi

    Newbie

  • Members
  • Pip
  • 1 posts
"Game Design, Second Edition" offers a behind-the-scenes look at how a game gets designed and developed—from the day the idea is born to the day the box hits the shelves. This new edition offers information on the latest techniques and development models, interviews with 12 top game designers, document templates that can be used during product development, and numerous industry resources. It is a practical guide that covers everything from the fundamentals of game design, to the trade-offs in the development process, to the deals a publisher makes to get a game on the shelves. No matter what your role is in the industry, understanding this entire process will help you do your job better. And if you ’re looking to break in, you ’ll find knowledge here that is usually attained only after years in the trenches.

#3
kavery

kavery

    Learning Programmer

  • Members
  • PipPipPip
  • 38 posts
I'll check it out and see what i can find, but i still wanna know why the PC work but not the XBOX360, it's really baffled me.:confused:

thanks for the guidance, i'll download the book, thank ya

#4
kavery

kavery

    Learning Programmer

  • Members
  • PipPipPip
  • 38 posts
I found out the problem, really very simple and makes me seems like an idiot. I had to clean the solution and rebuld it. it solved the problem. sorry for wasting anyones time.