Inheritance
System.Object
Keyboard
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
public class Keyboard : InputDevice, ITextInputReceiver
Fields
Declaration
public const int KeyCount = 110
Field Value
Type |
Description |
System.Int32 |
|
Properties
The 'a' key. Key immediately to the right of the caps lock key.
Declaration
public KeyControl aKey { get; }
Property Value
Type |
Description |
KeyControl |
|
A synthetic button control that is considered pressed if any key on the keyboard is pressed.
Declaration
public AnyKeyControl anyKey { get; }
Property Value
Type |
Description |
AnyKeyControl |
|
The ` key. The leftmost key in the row of digits. Directly above tab.
Declaration
public KeyControl backquoteKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl backslashKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl backspaceKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl bKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl capsLockKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl cKey { get; }
Property Value
Type |
Description |
KeyControl |
|
The ',' key. Third key to the left of the right shift key.
Declaration
public KeyControl commaKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl contextMenuKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public static Keyboard current { get; }
Property Value
Declaration
public KeyControl deleteKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl digit0Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl digit1Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl digit2Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl digit3Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl digit4Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl digit5Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl digit6Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl digit7Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl digit8Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl digit9Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl dKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl downArrowKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl eKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl endKey { get; }
Property Value
Type |
Description |
KeyControl |
|
The enter/return key in the main key block.
Declaration
public KeyControl enterKey { get; }
Property Value
Type |
Description |
KeyControl |
|
The '=' key in the main key block. Key immediately to the left of the backspace key.
Declaration
public KeyControl equalsKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl escapeKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl f10Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl f11Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl f12Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl f1Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl f2Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl f3Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl f4Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl f5Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl f6Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl f7Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl f8Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl f9Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl fKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl gKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl hKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl homeKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl iKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Sets the cursor position for IME composition dialogs. Units are from the upper left, in pixels, moving down and to the right.
Declaration
public Vector2 imeCursorPosition { set; }
Property Value
Activates/deactivates IME composition while typing. This decides whether or not to use the OS supplied IME system.
Declaration
public bool imeEnabled { set; }
Property Value
Type |
Description |
System.Boolean |
|
True when IME composition is enabled. Requires imeEnabled to be set to true, and the user to enable it at the OS level.
Declaration
public ButtonControl imeSelected { get; }
Property Value
Type |
Description |
ButtonControl |
|
Declaration
public KeyControl insertKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Look up a key control by its key code.
Declaration
public KeyControl this[Key key] { get; }
Parameters
Type |
Name |
Description |
Key |
key |
|
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl jKey { get; }
Property Value
Type |
Description |
KeyControl |
|
The name of the layout currently used by the keyboard.
Declaration
public string keyboardLayout { get; protected set; }
Property Value
Type |
Description |
System.String |
|
Declaration
public KeyControl kKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl leftAltKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl leftAppleKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl leftArrowKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl leftBracketKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl leftCommandKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl leftCtrlKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl leftMetaKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl leftShiftKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl leftWindowsKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl lKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl minusKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl mKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl nKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl numLockKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl numpad0Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl numpad1Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl numpad2Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl numpad3Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl numpad4Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl numpad5Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl numpad6Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl numpad7Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl numpad8Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl numpad9Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl numpadDivideKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl numpadEnterKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl numpadEqualsKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl numpadMinusKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl numpadMultiplyKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl numpadPeriodKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl numpadPlusKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl oem1Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl oem2Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl oem3Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl oem4Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl oem5Key { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl oKey { get; }
Property Value
Type |
Description |
KeyControl |
|
pageDownKey
Declaration
public KeyControl pageDownKey { get; }
Property Value
Type |
Description |
KeyControl |
|
pageUpKey
Declaration
public KeyControl pageUpKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl pauseKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl periodKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl pKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl printScreenKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl qKey { get; }
Property Value
Type |
Description |
KeyControl |
|
The ' key. The key immediately to the left of the enter/return key.
Declaration
public KeyControl quoteKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl rightAltKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl rightAppleKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl rightArrowKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl rightBracketKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl rightCommandKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl rightCtrlKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl rightMetaKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl rightShiftKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl rightWindowsKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl rKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl scrollLockKey { get; }
Property Value
Type |
Description |
KeyControl |
|
The ';' key. The key immediately to the left of the quote key.
Declaration
public KeyControl semicolonKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl sKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl slashKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl spaceKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl tabKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl tKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl uKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl upArrowKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl vKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl wKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl xKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl yKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Declaration
public KeyControl zKey { get; }
Property Value
Type |
Description |
KeyControl |
|
Methods
Declaration
protected override void FinishSetup(InputDeviceBuilder builder)
Parameters
Type |
Name |
Description |
InputDeviceBuilder |
builder |
|
Overrides
Declaration
public override void MakeCurrent()
Overrides
Declaration
public void OnIMECompositionChanged(IMECompositionString compositionString)
Parameters
Implements
Declaration
protected override void OnRemoved()
Overrides
OnTextInput(Char)
Declaration
public void OnTextInput(char character)
Parameters
Type |
Name |
Description |
System.Char |
character |
|
Implements
Declaration
protected override void RefreshConfiguration()
Overrides
Events
An event that is fired to get IME composition strings. Fired once for every change, sends the entire string to date, and sends a blank string whenever a composition is submitted or reset.
Declaration
public event Action<IMECompositionString> onIMECompositionChange
Event Type
onTextInput
Event that is fired for every single character entered on the keyboard.
Declaration
public event Action<char> onTextInput
Event Type
Type |
Description |
Action<System.Char> |
|