Table of Contents

Interface IKeyboardProvider

Namespace
SimulationFramework.Input
Assembly
SimulationFramework.dll

Provides keyboard input to the simulation.

public interface IKeyboardProvider : ISimulationComponent, IDisposable
Inherited Members

Properties

HeldKeys

A collection of all keys which are held this frame.

IEnumerable<Key> HeldKeys { get; }

Property Value

IEnumerable<Key>

PressedKeys

A collection of all keys pressed this frame. A key is only considered pressed on the first frame that it is held.

IEnumerable<Key> PressedKeys { get; }

Property Value

IEnumerable<Key>

ReleasedKeys

A collection of all keys released this frame. A key is only considered released on the first frame that it is not held.

IEnumerable<Key> ReleasedKeys { get; }

Property Value

IEnumerable<Key>

TypedKeys

All of the characters typed this frame. This is usually used for text input.

IEnumerable<char> TypedKeys { get; }

Property Value

IEnumerable<char>

Events

KeyPressed

Invoked when a key is pressed.

event KeyEvent KeyPressed

Event Type

KeyEvent

KeyReleased

Invoked when a key is released.

event KeyEvent KeyReleased

Event Type

KeyEvent

KeyTyped

Invoked when a char is typed. This is usually used for text input.

event KeyTypedEvent KeyTyped

Event Type

KeyTypedEvent