Ok I need to know if it is possible to trigger a gameloop with a key press? ex code
if (GamePad.GetState(PlayerIndex.One).Buttons.X == ButtonState.Pressed || Keyboard.GetState().IsKeyDown(Keys.Up))
{
ball.Update();
}
obviously this is wrong because when I press the up button the ballstarts moving but stops when I release. and yes I looked online and couldn't find anything on this