KeyboardMessage ClassDelta Engine Documentation
Keyboard input message for remote input via networking. View code on GitHub
Inheritance Hierarchy

System Object
  DeltaEngine.Input KeyboardMessage

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

public class KeyboardMessage

The KeyboardMessage type exposes the following members.

Constructors

  NameDescription
Public methodKeyboardMessage 
Initializes a new instance of the KeyboardMessage class
Public methodKeyboardMessage( Key )
Initializes a new instance of the KeyboardMessage class
Top
Properties

  NameDescription
Public propertyPressedKeys
Top
Remarks

Tests: DeltaEngine.Input.Tests.KeyboardMessagesTests
Examples

2 unit tests call DeltaEngine.Input.KeyboardMessage
[Test]
public void CanCreateKeyboardMessageWithoutParameter()
{
    keyboardMessage = new KeyboardMessage();
    Assert.NotNull(keyboardMessage);
}
[Test]
public void PressedKeyShouldBeEnter()
{
    Assert.AreEqual(new[] { Key.Enter }, keyboardMessage.PressedKeys);
}
See Also