Inheritance Hierarchy
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
The KeyboardKeyMapperTests type exposes the following members.
Constructors
Name | Description | |
---|---|---|
KeyboardKeyMapperTests | Initializes a new instance of the KeyboardKeyMapperTests class |
Methods
Name | Description | |
---|---|---|
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