Class InputManager
Implements application input manager for game pad, mouse, keyboard and touch
Inheritance
System.Object
InputManager
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 sealed class InputManager
Properties
Current
Gets the current.
Declaration
public static InputManager Current { get; }
Property Value
Type | Description |
---|---|
InputManager | The current. |
FocusedElement
Gets or sets the focused element.
Declaration
public UIElement FocusedElement { get; set; }
Property Value
Type | Description |
---|---|
UIElement | The focused element. |
GamepadDevice
Gets the game pad device.
Declaration
public Gamepad GamepadDevice { get; }
Property Value
Type | Description |
---|---|
Gamepad | The game pad device. |
KeyboardDevice
Gets the keyboard device.
Declaration
public Keyboard KeyboardDevice { get; }
Property Value
Type | Description |
---|---|
Keyboard | The keyboard device. |
MouseDevice
Gets the mouse device.
Declaration
public Mouse MouseDevice { get; }
Property Value
Type | Description |
---|---|
Mouse | The mouse device. |
TouchDevice
Gets the touch device.
Declaration
public Touch TouchDevice { get; }
Property Value
Type | Description |
---|---|
Touch | The touch device. |
Methods
ClearFocus()
Clears the focus.
Declaration
public void ClearFocus()
Focus(UIElement)
Focuses the specified input element.
Declaration
public void Focus(UIElement inputElement)
Parameters
Type | Name | Description |
---|---|---|
UIElement | inputElement | The input element. |
NavigateTabIndex(Int32, Boolean)
Navigates to specific tab index
Declaration
public void NavigateTabIndex(int tabIndex, bool messageBoxVisible)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | tabIndex | tab index |
System.Boolean | messageBoxVisible | if set to |
NavigateTabNext(Boolean)
Navigates the tab - focus to the next tab stop
Declaration
public void NavigateTabNext(bool messageBoxVisible)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | messageBoxVisible | if set to |
NavigateTabPrevious(Boolean)
Navigates the tab - focus to the previous element
Declaration
public void NavigateTabPrevious(bool messageBoxVisible)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | messageBoxVisible | if set to |
Update(UIRoot, Double)
Updates the specified UI root.
Declaration
public void Update(UIRoot uiRoot, double elapsedGameTime)
Parameters
Type | Name | Description |
---|---|---|
UIRoot | uiRoot | The UI root. |
System.Double | elapsedGameTime | The elapsed game time. |