Class ButtonInputListener
Implements listener for any button like input (bool state) with repeating capabilities
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 ButtonInputListener : RepeatInputListener, IInputListener
Constructors
ButtonInputListener(InputListener<Boolean>.InputListenerGetCurrentValueDelegate)
Initializes a new instance of the ButtonInputListener class.
Declaration
public ButtonInputListener(InputListener<bool>.InputListenerGetCurrentValueDelegate delegateCurrentValue)
Parameters
Type | Name | Description |
---|---|---|
InputListener.InputListenerGetCurrentValueDelegate<> | delegateCurrentValue | The delegate current value. |
Methods
OnUpdate()
Called when [update].
Declaration
protected override void OnUpdate()
Overrides
Events
ButtonDownEvent
Occurs when [button down event].
Declaration
public event InputListenerDelegate ButtonDownEvent
Event Type
Type | Description |
---|---|
InputListenerDelegate |
ButtonUpEvent
Occurs when [button up event].
Declaration
public event InputListenerDelegate ButtonUpEvent
Event Type
Type | Description |
---|---|
InputListenerDelegate |