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
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
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
TypedKeys
All of the characters typed this frame. This is usually used for text input.
IEnumerable<char> TypedKeys { get; }
Property Value
Events
KeyPressed
Invoked when a key is pressed.
event KeyEvent KeyPressed
Event Type
KeyReleased
Invoked when a key is released.
event KeyEvent KeyReleased
Event Type
KeyTyped
Invoked when a char is typed. This is usually used for text input.
event KeyTypedEvent KeyTyped