Show / Hide Table of Contents

Class GamepadDPadInputListener

Implements input listener for gamepad dpad.

Inheritance
System.Object
InputListener<EmptyKeys.UserInterface.PointF>
GamepadDPadInputListener
Implements
IInputListener
Inherited Members
InputListener<PointF>.getCurrentValue
InputListener<PointF>.currentValue
InputListener<PointF>.inputGameTime
InputListener<PointF>.lastValue
InputListener<PointF>.CurrentValue
InputListener<PointF>.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 GamepadDPadInputListener : InputListener<PointF>, IInputListener

Constructors

GamepadDPadInputListener(InputListener<PointF>.InputListenerGetCurrentValueDelegate)

Initializes a new instance of the GamepadDPadInputListener class.

Declaration
public GamepadDPadInputListener(InputListener<PointF>.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 dpad button state

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<EmptyKeys.UserInterface.PointF>.OnUpdate()

Events

MoveEvent

Occurs when [move event].

Declaration
public event MoveDelegate MoveEvent
Event Type
Type Description
MoveDelegate

Implements

IInputListener
Back to top Generated by DocFX