Class KeyInputListener
Implements input listener for keyboard keys
Implements
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: EmptyKeys.UserInterface.Input
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class KeyInputListener : RepeatInputListener, IInputListener
Constructors
KeyInputListener(KeyCode, KeyboardStateBase)
Initializes a new instance of the KeyInputListener class.
Declaration
public KeyInputListener(KeyCode key, KeyboardStateBase state)
Parameters
Type | Name | Description |
---|---|---|
EmptyKeys.UserInterface.Input.KeyCode | key | The key. |
EmptyKeys.UserInterface.Input.KeyboardStateBase | state | The state. |
Properties
Key
Gets the key.
Declaration
public KeyCode Key { get; }
Property Value
Type | Description |
---|---|
EmptyKeys.UserInterface.Input.KeyCode | The key. |
Methods
OnUpdate()
Called when [update].
Declaration
protected override void OnUpdate()
Overrides
Events
KeyDownEvent
Occurs when [key down event].
Declaration
public event KeyInputListenerDelegate KeyDownEvent
Event Type
Type | Description |
---|---|
KeyInputListenerDelegate |
KeyUpEvent
Occurs when [key up event].
Declaration
public event KeyInputListenerDelegate KeyUpEvent
Event Type
Type | Description |
---|---|
KeyInputListenerDelegate |