Class GamepadBinding
Implements binding for Game Pad input and Input Gesture
Implements
Inherited Members
Namespace: EmptyKeys.UserInterface.Input
Assembly: EmptyKeys.UserInterface.dll
Syntax
public class GamepadBinding : InputBinding, ICommandSource
Constructors
GamepadBinding()
Initializes a new instance of the GamepadBinding class.
Declaration
public GamepadBinding()
GamepadBinding(ICommand, GamepadGesture)
Initializes a new instance of the GamepadBinding class.
Declaration
public GamepadBinding(ICommand command, GamepadGesture gesture)
Parameters
| Type | Name | Description |
|---|---|---|
| ICommand | command | The command. |
| GamepadGesture | gesture | The gesture. |
GamepadBinding(ICommand, GamepadInput)
Initializes a new instance of the GamepadBinding class.
Declaration
public GamepadBinding(ICommand command, GamepadInput input)
Parameters
| Type | Name | Description |
|---|---|---|
| ICommand | command | The command. |
| GamepadInput | input | The input. |
Fields
GamepadInputProperty
The input property
Declaration
public static readonly DependencyProperty GamepadInputProperty
Field Value
| Type | Description |
|---|---|
| DependencyProperty |
Properties
GamepadInput
Gets or sets the input.
Declaration
public GamepadInput GamepadInput { get; set; }
Property Value
| Type | Description |
|---|---|
| GamepadInput | The input. |
Gesture
Gets or sets the gesture.
Declaration
public override InputGesture Gesture { get; set; }
Property Value
| Type | Description |
|---|---|
| InputGesture | The gesture. |
Overrides
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentException | Wrong Input Gesture type. Expected GamepadGesture. |