Class InputListener<T>
Implements generic Input Listener
Inheritance
System.Object
InputListener<T>
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 InputListener<T> : IInputListener
Type Parameters
Name | Description |
---|---|
T |
Constructors
InputListener(InputListener<T>.InputListenerGetCurrentValueDelegate)
Initializes a new instance of the InputListener<T> class.
Declaration
public InputListener(InputListener<T>.InputListenerGetCurrentValueDelegate delegateCurrentValue)
Parameters
Type | Name | Description |
---|---|---|
InputListener.InputListenerGetCurrentValueDelegate<> | delegateCurrentValue | The delegate current value. |
Fields
currentValue
The current value
Declaration
protected T currentValue
Field Value
Type | Description |
---|---|
T |
getCurrentValue
The get current value
Declaration
protected InputListener<T>.InputListenerGetCurrentValueDelegate getCurrentValue
Field Value
Type | Description |
---|---|
InputListener.InputListenerGetCurrentValueDelegate<> |
inputGameTime
The input game time
Declaration
protected double inputGameTime
Field Value
Type | Description |
---|---|
System.Double |
lastValue
The last value
Declaration
protected T lastValue
Field Value
Type | Description |
---|---|
T |
Properties
CurrentValue
Gets the current value.
Declaration
public T CurrentValue { get; }
Property Value
Type | Description |
---|---|
T | The current value. |
Methods
OnUpdate()
Called when [update].
Declaration
protected virtual void OnUpdate()
Update(Double)
Updates this instance.
Declaration
public void Update(double elapsedGameTime)
Parameters
Type | Name | Description |
---|---|---|
System.Double | elapsedGameTime | The elapsed game time. |