Exemple #1
0
    public void Poll()
    {
        // Store previous States.
        previousMouseState.Copy(currentMouseState);
        previousKeyboardState.Copy(currentKeyboardState);

        if (IsMouseActive)
        {
            GetMouseInput();
        }

        if (IsKeyboardActive)
        {
            GetKeyboardInput();
        }
    }