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


Sign In
Create Account


Back to top









