public void ClearAllWasPressedState(int numFrames) { if (b0 != 0) { GamePadInput pad = GamePadInput.GetGamePad0(); GamePadInput.Button b = pad.GetButton(b0); b.ClearAllWasPressedState(); b.IgnoreUntilReleased = true; if (b1 != 0) { b = pad.GetButton(b0); b.ClearAllWasPressedState(); b.IgnoreUntilReleased = true; } if (numFrames > 0) { GamePadInput.ClearAllWasPressedState(numFrames); } } for (int i = 0; i < keys.Count; i++) { KeyboardInput.ClearAllWasPressedState(keys[i]); } } // end of ClearAllWasPressedState()