Exemplo n.º 1
0
 internal InputManager()
 {
     this.currentKeyState = KeyboardState.Empty;
     this.previousKeyState = KeyboardState.Empty;
     this.currentMouseState = MouseState.Empty;
     this.previousMouseState = MouseState.Empty;
 }
Exemplo n.º 2
0
        internal void Update()
        {
            this.previousKeyState = this.currentKeyState;
            this.currentKeyState = new KeyboardState();

            this.previousMouseState = this.currentMouseState;
            this.currentMouseState = new MouseState();
        }