Show / Hide Table of Contents

Class KeyInputListener

Implements input listener for keyboard keys

Inheritance
System.Object
InputListener<System.Boolean>
RepeatInputListener
KeyInputListener
Implements
IInputListener
Inherited Members
RepeatInputListener.StartingRepeatDelay
RepeatInputListener.RepeatTime
RepeatInputListener.repeatEnabled
RepeatInputListener.EnableRepeat(Double, Double)
InputListener<Boolean>.getCurrentValue
InputListener<Boolean>.currentValue
InputListener<Boolean>.inputGameTime
InputListener<Boolean>.lastValue
InputListener<Boolean>.CurrentValue
InputListener<Boolean>.Update(Double)
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
RepeatInputListener.OnUpdate()

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

Implements

IInputListener
Back to top Generated by DocFX