Class Keyboard
Implements keyboard device and routed events
Inheritance
System.Object
Keyboard
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 Keyboard
Constructors
Keyboard()
Initializes a new instance of the Keyboard class.
Declaration
public Keyboard()
Fields
KeyDownEvent
The key down event
Declaration
public static readonly RoutedEvent KeyDownEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
KeyUpEvent
The key up event
Declaration
public static readonly RoutedEvent KeyUpEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
PreviewKeyDownEvent
The preview key down event
Declaration
public static readonly RoutedEvent PreviewKeyDownEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
PreviewKeyUpEvent
The preview key up event
Declaration
public static readonly RoutedEvent PreviewKeyUpEvent
Field Value
| Type | Description |
|---|---|
| RoutedEvent |
Properties
FocusedElement
Gets the focused element.
Declaration
public UIElement FocusedElement { get; }
Property Value
| Type | Description |
|---|---|
| UIElement | The focused element. |
IsAltPressed
Gets a value indicating whether is alt pressed.
Declaration
public static bool IsAltPressed { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
IsControlPressed
Gets a value indicating whether is control pressed.
Declaration
public static bool IsControlPressed { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
IsShiftPressed
Gets a value indicating whether is shift pressed.
Declaration
public static bool IsShiftPressed { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
|
Modifiers
Gets the modifiers.
Declaration
public static ModifierKeys Modifiers { get; }
Property Value
| Type | Description |
|---|---|
| ModifierKeys | The modifiers. |
Methods
HideVirtualKeyboard()
Hides the virtual keyboard.
Declaration
public void HideVirtualKeyboard()
ShowVirtualKeyboard()
Shows the virtual keyboard.
Declaration
public void ShowVirtualKeyboard()
Update(UIRoot, Double, Double)
Updates all listeners
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. |