Class Gamepad
Implements Game Pad device and stores input listeners
Inheritance
System.Object
Gamepad
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 Gamepad
Constructors
Gamepad(Int32)
Initializes a new instance of the Gamepad class.
Declaration
public Gamepad(int playerNumber)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | playerNumber | The player number. |
Fields
GamepadDownEvent
The game pad down event
Declaration
public static readonly RoutedEvent GamepadDownEvent
Field Value
Type | Description |
---|---|
RoutedEvent |
GamepadMoveEvent
The preview game pad move event
Declaration
public static readonly RoutedEvent GamepadMoveEvent
Field Value
Type | Description |
---|---|
RoutedEvent |
GamepadTriggerEvent
The game pad trigger event
Declaration
public static readonly RoutedEvent GamepadTriggerEvent
Field Value
Type | Description |
---|---|
RoutedEvent |
GamepadUpEvent
The Game pad up event
Declaration
public static readonly RoutedEvent GamepadUpEvent
Field Value
Type | Description |
---|---|
RoutedEvent |
PreviewGamepadDownEvent
The preview Game pad down event
Declaration
public static readonly RoutedEvent PreviewGamepadDownEvent
Field Value
Type | Description |
---|---|
RoutedEvent |
PreviewGamepadMoveEvent
The preview game pad move event
Declaration
public static readonly RoutedEvent PreviewGamepadMoveEvent
Field Value
Type | Description |
---|---|
RoutedEvent |
PreviewGamepadTriggerEvent
The preview game pad trigger event
Declaration
public static readonly RoutedEvent PreviewGamepadTriggerEvent
Field Value
Type | Description |
---|---|
RoutedEvent |
PreviewGamepadUpEvent
The preview Game pad up event
Declaration
public static readonly RoutedEvent PreviewGamepadUpEvent
Field Value
Type | Description |
---|---|
RoutedEvent |
Properties
FocusedElement
Gets the focused element.
Declaration
public UIElement FocusedElement { get; }
Property Value
Type | Description |
---|---|
UIElement | The focused element. |
Methods
Update(UIRoot, Double, Double)
Updates the specified UI container.
Declaration
public void Update(UIRoot uiContainer, double elapsedGameTime, double totalGameTime)
Parameters
Type | Name | Description |
---|---|---|
UIRoot | uiContainer | The UI container. |
System.Double | elapsedGameTime | The elapsed game time. |
System.Double | totalGameTime | The total game time. |