KeyboardDeviceBase Class
Namespace: Stride.Input
Assembly: Stride.Input.dll
Base class for keyboard devices
System.Object →
KeyboardDeviceBase
public abstract class KeyboardDeviceBase : IKeyboardDevice, IInputDevice
|
Improve this Doc
View Source
Constructors
protected KeyboardDeviceBase()
|
Improve this Doc
View Source
Fields
protected readonly List<KeyEvent> Events
Field Value
Type |
Description |
System.Collections.Generic.List<KeyEvent> |
|
public readonly Dictionary<Keys, int> KeyRepeats
Field Value
Type |
Description |
System.Collections.Generic.Dictionary<Keys, System.Int32> |
|
|
Improve this Doc
View Source
Properties
public IReadOnlySet<Keys> DownKeys { get; }
Property Value
public abstract Guid Id { get; }
Property Value
Type |
Description |
System.Guid |
|
public abstract string Name { get; }
Property Value
Type |
Description |
System.String |
|
public IReadOnlySet<Keys> PressedKeys { get; }
Property Value
public int Priority { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
public IReadOnlySet<Keys> ReleasedKeys { get; }
Property Value
public abstract IInputSource Source { get; }
Property Value
|
Improve this Doc
View Source
Methods
public void HandleKeyDown(Keys key)
Parameters
Type |
Name |
Description |
Keys |
key |
|
public void HandleKeyUp(Keys key)
Parameters
Type |
Name |
Description |
Keys |
key |
|
public virtual void Update(List<InputEvent> inputEvents)
Parameters
Type |
Name |
Description |
System.Collections.Generic.List<InputEvent> |
inputEvents |
|
Extension Methods