KeyboardKeyMapperTests ClassDelta Engine Documentation
Inheritance Hierarchy

System Object
  DeltaEngine.Input.SharpDX.Tests KeyboardKeyMapperTests

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 class KeyboardKeyMapperTests

The KeyboardKeyMapperTests type exposes the following members.

Constructors

  NameDescription
Public methodKeyboardKeyMapperTests
Initializes a new instance of the KeyboardKeyMapperTests class
Top
Methods

  NameDescription
Public methodTranslate
Top
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