WindowsKeyboardTests UpdateKeyStates Method Delta Engine Documentation

Namespace: DeltaEngine.Input.Windows.Tests
Assembly: DeltaEngine.Input.Windows.Tests (in DeltaEngine.Input.Windows.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void UpdateKeyStates()
Examples

[Test, CloseAfterFirstFrame]
public void UpdateKeyStates()
{
    var mockKeyboard = new MockWindowsKeyboard();
    mockKeyboard.SetPressedKey(Key.A);
    var triggerPressing = new KeyTrigger(Key.A);
    mockKeyboard.Update(new[] { triggerPressing });
See Also