Show / Hide Table of Contents

Class ButtonInputListener

Implements listener for any button like input (bool state) with repeating capabilities

Inheritance
System.Object
InputListener<System.Boolean>
RepeatInputListener
ButtonInputListener
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 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
RepeatInputListener.OnUpdate()

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

Implements

IInputListener
Back to top Generated by DocFX