Class KeyboardInputProvider
- Namespace
- OmegaEngine.Input
- Assembly
- OmegaEngine.dll
Processes keyboard events into higher-level navigational commands.
public class KeyboardInputProvider : InputProvider, IDisposable
- Inheritance
-
KeyboardInputProvider
- Implements
- Inherited Members
- Extension Methods
Constructors
KeyboardInputProvider(Control)
Starts monitoring and processing keyboard events received by a specific control.
public KeyboardInputProvider(Control control)
Parameters
controlControlThe control receiving the keyboard events.
Properties
KeyMap
Mapping from key to navigation action.
public Dictionary<Keys, (DoubleVector3 Translation, DoubleVector3 Rotation)> KeyMap { get; }
Property Value
KeyRepetitionRate
The rate at which the keyboard events are repeated when a button is held down.
public TimeSpan KeyRepetitionRate { get; set; }
Property Value
Methods
Dispose(bool)
To be called by Dispose() and the object destructor.
protected override void Dispose(bool disposing)
Parameters
disposingbooltrueif called manually and not by the garbage collector.