KeyboardKeyMapperTests Translate Method Delta Engine Documentation

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

public void Translate()
Examples

[Test]
public void Translate()
{
    Assert.AreEqual(SharpDXKey.Left, KeyboardKeyMapper.Translate(Key.CursorLeft));
    Assert.AreEqual(SharpDXKey.O, KeyboardKeyMapper.Translate(Key.O));
    Assert.AreEqual(SharpDXKey.RightBracket, KeyboardKeyMapper.Translate(Key.CloseBrackets));
}
See Also