public void Poll() { // Store previous States. previousMouseState.Copy(currentMouseState); previousKeyboardState.Copy(currentKeyboardState); if (IsMouseActive) { GetMouseInput(); } if (IsKeyboardActive) { GetKeyboardInput(); } }