Project_Starfighter.ActionScreen.CheckOtherKeys C# (CSharp) Method

CheckOtherKeys() protected method

protected CheckOtherKeys ( KeyboardState ksKeys ) : void
ksKeys Microsoft.Xna.Framework.Input.KeyboardState
return void
        protected void CheckOtherKeys(KeyboardState ksKeys)
        {
            // Space Bar or Game Pad A button fire the
            // player's weapon.  The weapon has it's
            // own regulating delay (fBulletDelayTimer)
            // to pace the firing of the player's weapon.
            if (ksKeys.IsKeyDown(Keys.Space))
            {
                if (fBulletDelayTimer >= fFireDelay)
                {
                    FireBullet(0);
                    fBulletDelayTimer = 0.0f;
                }
            }
        }