Class RepeatInputListener
Implements base repeat input listener, it repeats input event
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 RepeatInputListener : InputListener<bool>, IInputListener
Constructors
RepeatInputListener(InputListener<Boolean>.InputListenerGetCurrentValueDelegate)
Initializes a new instance of the RepeatInputListener class.
Declaration
public RepeatInputListener(InputListener<bool>.InputListenerGetCurrentValueDelegate delegateCurrentValue)
Parameters
Type | Name | Description |
---|---|---|
InputListener.InputListenerGetCurrentValueDelegate<> | delegateCurrentValue | The delegate current value. |
Fields
repeatEnabled
The repeat enabled
Declaration
protected bool repeatEnabled
Field Value
Type | Description |
---|---|
System.Boolean |
RepeatTime
The repeat time - default value
Declaration
public const double RepeatTime = 25
Field Value
Type | Description |
---|---|
System.Double |
StartingRepeatDelay
The starting repeat delay - default value
Declaration
public const double StartingRepeatDelay = 400
Field Value
Type | Description |
---|---|
System.Double |
Methods
EnableRepeat(Double, Double)
Enables the repeat feature on this listener, listener will repeat KeyDownEvent
Declaration
public void EnableRepeat(double delay = 400, double interval = 25)
Parameters
Type | Name | Description |
---|---|---|
System.Double | delay | The delay. |
System.Double | interval | The interval. |
OnUpdate()
Called when [update].
Declaration
protected override void OnUpdate()
Overrides
EmptyKeys.UserInterface.Input.InputListener<System.Boolean>.OnUpdate()