Inheritance
System.Object
Keyboard
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
A synthetic button control that is considered pressed if any key on the keyboard is pressed.
Declaration
public AnyKeyControl anyKey { get; }
Property Value
The ` key. The leftmost key in the row of digits. Directly above tab.
Declaration
public KeyControl backquoteKey { get; }
Property Value
Declaration
public KeyControl backslashKey { get; }
Property Value
Declaration
public KeyControl backspaceKey { get; }
Property Value
Declaration
public KeyControl bKey { get; }
Property Value
Declaration
public KeyControl capsLockKey { get; }
Property Value
Declaration
public KeyControl cKey { get; }
Property Value
The ',' key. Third key to the left of the right shift key.
Declaration
public KeyControl commaKey { get; }
Property Value
Declaration
public KeyControl contextMenuKey { get; }
Property Value
Declaration
public static Keyboard current { get; }
Property Value
Declaration
public KeyControl deleteKey { get; }
Property Value
Declaration
public KeyControl digit0Key { get; }
Property Value
Declaration
public KeyControl digit1Key { get; }
Property Value
Declaration
public KeyControl digit2Key { get; }
Property Value
Declaration
public KeyControl digit3Key { get; }
Property Value
Declaration
public KeyControl digit4Key { get; }
Property Value
Declaration
public KeyControl digit5Key { get; }
Property Value
Declaration
public KeyControl digit6Key { get; }
Property Value
Declaration
public KeyControl digit7Key { get; }
Property Value
Declaration
public KeyControl digit8Key { get; }
Property Value
Declaration
public KeyControl digit9Key { get; }
Property Value
Declaration
public KeyControl dKey { get; }
Property Value
Declaration
public KeyControl downArrowKey { get; }
Property Value
Declaration
public KeyControl eKey { get; }
Property Value
Declaration
public KeyControl endKey { get; }
Property Value
The enter/return key in the main key block.
Declaration
public KeyControl enterKey { get; }
Property Value
The '=' key in the main key block. Key immediately to the left of the backspace key.
Declaration
public KeyControl equalsKey { get; }
Property Value
Declaration
public KeyControl escapeKey { get; }
Property Value
Declaration
public KeyControl f10Key { get; }
Property Value
Declaration
public KeyControl f11Key { get; }
Property Value
Declaration
public KeyControl f12Key { get; }
Property Value
Declaration
public KeyControl f1Key { get; }
Property Value
Declaration
public KeyControl f2Key { get; }
Property Value
Declaration
public KeyControl f3Key { get; }
Property Value
Declaration
public KeyControl f4Key { get; }
Property Value
Declaration
public KeyControl f5Key { get; }
Property Value
Declaration
public KeyControl f6Key { get; }
Property Value
Declaration
public KeyControl f7Key { get; }
Property Value
Declaration
public KeyControl f8Key { get; }
Property Value
Declaration
public KeyControl f9Key { get; }
Property Value
Declaration
public KeyControl fKey { get; }
Property Value
Declaration
public KeyControl gKey { get; }
Property Value
Declaration
public KeyControl hKey { get; }
Property Value
Declaration
public KeyControl homeKey { get; }
Property Value
Declaration
public KeyControl iKey { get; }
Property Value
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
Declaration
public KeyControl insertKey { get; }
Property Value
Look up a key control by its key code.
Declaration
public KeyControl this[Key key] { get; }
Parameters
Type |
Name |
Description |
Key |
key |
|
Property Value
Exceptions
Type |
Condition |
System.ArgumentException |
The given is not valid.
|
Declaration
public KeyControl jKey { get; }
Property Value
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
Declaration
public KeyControl leftAltKey { get; }
Property Value
Declaration
public KeyControl leftAppleKey { get; }
Property Value
Declaration
public KeyControl leftArrowKey { get; }
Property Value
Declaration
public KeyControl leftBracketKey { get; }
Property Value
Declaration
public KeyControl leftCommandKey { get; }
Property Value
Declaration
public KeyControl leftCtrlKey { get; }
Property Value
Declaration
public KeyControl leftMetaKey { get; }
Property Value
Declaration
public KeyControl leftShiftKey { get; }
Property Value
Declaration
public KeyControl leftWindowsKey { get; }
Property Value
Declaration
public KeyControl lKey { get; }
Property Value
Declaration
public KeyControl minusKey { get; }
Property Value
Declaration
public KeyControl mKey { get; }
Property Value
Declaration
public KeyControl nKey { get; }
Property Value
Declaration
public KeyControl numLockKey { get; }
Property Value
Declaration
public KeyControl numpad0Key { get; }
Property Value
Declaration
public KeyControl numpad1Key { get; }
Property Value
Declaration
public KeyControl numpad2Key { get; }
Property Value
Declaration
public KeyControl numpad3Key { get; }
Property Value
Declaration
public KeyControl numpad4Key { get; }
Property Value
Declaration
public KeyControl numpad5Key { get; }
Property Value
Declaration
public KeyControl numpad6Key { get; }
Property Value
Declaration
public KeyControl numpad7Key { get; }
Property Value
Declaration
public KeyControl numpad8Key { get; }
Property Value
Declaration
public KeyControl numpad9Key { get; }
Property Value
Declaration
public KeyControl numpadDivideKey { get; }
Property Value
Declaration
public KeyControl numpadEnterKey { get; }
Property Value
Declaration
public KeyControl numpadEqualsKey { get; }
Property Value
Declaration
public KeyControl numpadMinusKey { get; }
Property Value
Declaration
public KeyControl numpadMultiplyKey { get; }
Property Value
Declaration
public KeyControl numpadPeriodKey { get; }
Property Value
Declaration
public KeyControl numpadPlusKey { get; }
Property Value
Declaration
public KeyControl oem1Key { get; }
Property Value
Declaration
public KeyControl oem2Key { get; }
Property Value
Declaration
public KeyControl oem3Key { get; }
Property Value
Declaration
public KeyControl oem4Key { get; }
Property Value
Declaration
public KeyControl oem5Key { get; }
Property Value
Declaration
public KeyControl oKey { get; }
Property Value
pageDownKey
Declaration
public KeyControl pageDownKey { get; }
Property Value
pageUpKey
Declaration
public KeyControl pageUpKey { get; }
Property Value
Declaration
public KeyControl pauseKey { get; }
Property Value
Declaration
public KeyControl periodKey { get; }
Property Value
Declaration
public KeyControl pKey { get; }
Property Value
Declaration
public KeyControl printScreenKey { get; }
Property Value
Declaration
public KeyControl qKey { get; }
Property Value
The ' key. The key immediately to the left of the enter/return key.
Declaration
public KeyControl quoteKey { get; }
Property Value
Declaration
public KeyControl rightAltKey { get; }
Property Value
Declaration
public KeyControl rightAppleKey { get; }
Property Value
Declaration
public KeyControl rightArrowKey { get; }
Property Value
Declaration
public KeyControl rightBracketKey { get; }
Property Value
Declaration
public KeyControl rightCommandKey { get; }
Property Value
Declaration
public KeyControl rightCtrlKey { get; }
Property Value
Declaration
public KeyControl rightMetaKey { get; }
Property Value
Declaration
public KeyControl rightShiftKey { get; }
Property Value
Declaration
public KeyControl rightWindowsKey { get; }
Property Value
Declaration
public KeyControl rKey { get; }
Property Value
Declaration
public KeyControl scrollLockKey { get; }
Property Value
The ';' key. The key immediately to the left of the quote key.
Declaration
public KeyControl semicolonKey { get; }
Property Value
Declaration
public KeyControl sKey { get; }
Property Value
Declaration
public KeyControl slashKey { get; }
Property Value
Declaration
public KeyControl spaceKey { get; }
Property Value
Declaration
public KeyControl tabKey { get; }
Property Value
Declaration
public KeyControl tKey { get; }
Property Value
Declaration
public KeyControl uKey { get; }
Property Value
Declaration
public KeyControl upArrowKey { get; }
Property Value
Declaration
public KeyControl vKey { get; }
Property Value
Declaration
public KeyControl wKey { get; }
Property Value
Declaration
public KeyControl xKey { get; }
Property Value
Declaration
public KeyControl yKey { get; }
Property Value
Declaration
public KeyControl zKey { get; }
Property Value
Methods
Declaration
protected override void FinishSetup(InputDeviceBuilder builder)
Parameters
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 |
System.Action<System.Char> |
|
Extension Methods