Struct KeyboardState
Represents the state of the keyboard.
Implements
Namespace: Evergine.Common.Input
Assembly: Evergine.Common.dll
Syntax
public struct KeyboardState : IControllerFields
A
The "A" key.
Declaration
public ButtonState AField Value
| Type | Description | 
|---|---|
| ButtonState | 
Accept
The accept button or key.
Declaration
public ButtonState AcceptField Value
| Type | Description | 
|---|---|
| ButtonState | 
Add
The add (+) operation key located on a numeric pad.
Declaration
public ButtonState AddField Value
| Type | Description | 
|---|---|
| ButtonState | 
Apostrophe
The apostrophe key.
Declaration
public ButtonState ApostropheField Value
| Type | Description | 
|---|---|
| ButtonState | 
Application
The application key or button.
Declaration
public ButtonState ApplicationField Value
| Type | Description | 
|---|---|
| ButtonState | 
B
The "B" key.
Declaration
public ButtonState BField Value
| Type | Description | 
|---|---|
| ButtonState | 
Back
The virtual back key or button.
Declaration
public ButtonState BackField Value
| Type | Description | 
|---|---|
| ButtonState | 
BackSlash
The backslash key.
Declaration
public ButtonState BackSlashField Value
| Type | Description | 
|---|---|
| ButtonState | 
C
The "C" key.
Declaration
public ButtonState CField Value
| Type | Description | 
|---|---|
| ButtonState | 
Cancel
The cancel key or button.
Declaration
public ButtonState CancelField Value
| Type | Description | 
|---|---|
| ButtonState | 
CapitalLock
The Caps Lock key or button.
Declaration
public ButtonState CapitalLockField Value
| Type | Description | 
|---|---|
| ButtonState | 
Clear
The Clear key or button.
Declaration
public ButtonState ClearField Value
| Type | Description | 
|---|---|
| ButtonState | 
Comma
Represents the comma key.
Declaration
public ButtonState CommaField Value
| Type | Description | 
|---|---|
| ButtonState | 
Control
The Ctrl key. This is the general Ctrl case, applicable to key layouts with only one Ctrl key or that do not need to differentiate between left Ctrl and right Ctrl keystrokes.
Declaration
public ButtonState ControlField Value
| Type | Description | 
|---|---|
| ButtonState | 
Convert
The convert button or key.
Declaration
public ButtonState ConvertField Value
| Type | Description | 
|---|---|
| ButtonState | 
D
The "D" key.
Declaration
public ButtonState DField Value
| Type | Description | 
|---|---|
| ButtonState | 
Decimal
The decimal (.) key as located on a numeric keypad.
Declaration
public ButtonState DecimalField Value
| Type | Description | 
|---|---|
| ButtonState | 
Delete
Represents the Delete key.
Declaration
public ButtonState DeleteField Value
| Type | Description | 
|---|---|
| ButtonState | 
Divide
The divide (/) operation key as located on a numeric keypad.
Declaration
public ButtonState DivideField Value
| Type | Description | 
|---|---|
| ButtonState | 
Down
The Down Arrow key.
Declaration
public ButtonState DownField Value
| Type | Description | 
|---|---|
| ButtonState | 
E
The "E" key.
Declaration
public ButtonState EField Value
| Type | Description | 
|---|---|
| ButtonState | 
End
The End key.
Declaration
public ButtonState EndField Value
| Type | Description | 
|---|---|
| ButtonState | 
Enter
The Enter key.
Declaration
public ButtonState EnterField Value
| Type | Description | 
|---|---|
| ButtonState | 
Escape
The Esc key.
Declaration
public ButtonState EscapeField Value
| Type | Description | 
|---|---|
| ButtonState | 
Execute
The execute key or button.
Declaration
public ButtonState ExecuteField Value
| Type | Description | 
|---|---|
| ButtonState | 
F
The "F" key.
Declaration
public ButtonState FField Value
| Type | Description | 
|---|---|
| ButtonState | 
F1
The F1 function key.
Declaration
public ButtonState F1Field Value
| Type | Description | 
|---|---|
| ButtonState | 
F10
The F10 function key.
Declaration
public ButtonState F10Field Value
| Type | Description | 
|---|---|
| ButtonState | 
F11
The F11 function key.
Declaration
public ButtonState F11Field Value
| Type | Description | 
|---|---|
| ButtonState | 
F12
The F12 function key.
Declaration
public ButtonState F12Field Value
| Type | Description | 
|---|---|
| ButtonState | 
F13
The F13 function key.
Declaration
public ButtonState F13Field Value
| Type | Description | 
|---|---|
| ButtonState | 
F14
The F14 function key.
Declaration
public ButtonState F14Field Value
| Type | Description | 
|---|---|
| ButtonState | 
F15
The F15 function key.
Declaration
public ButtonState F15Field Value
| Type | Description | 
|---|---|
| ButtonState | 
F16
The F16 function key.
Declaration
public ButtonState F16Field Value
| Type | Description | 
|---|---|
| ButtonState | 
F17
Represents the F17 function key.
Declaration
public ButtonState F17Field Value
| Type | Description | 
|---|---|
| ButtonState | 
F18
The F18 function key.
Declaration
public ButtonState F18Field Value
| Type | Description | 
|---|---|
| ButtonState | 
F19
The F19 function key.
Declaration
public ButtonState F19Field Value
| Type | Description | 
|---|---|
| ButtonState | 
F2
The F2 function key.
Declaration
public ButtonState F2Field Value
| Type | Description | 
|---|---|
| ButtonState | 
F20
The F20 function key.
Declaration
public ButtonState F20Field Value
| Type | Description | 
|---|---|
| ButtonState | 
F21
The F21 function key.
Declaration
public ButtonState F21Field Value
| Type | Description | 
|---|---|
| ButtonState | 
F22
The F22 function key.
Declaration
public ButtonState F22Field Value
| Type | Description | 
|---|---|
| ButtonState | 
F23
The F23 function key.
Declaration
public ButtonState F23Field Value
| Type | Description | 
|---|---|
| ButtonState | 
F24
The F24 function key.
Declaration
public ButtonState F24Field Value
| Type | Description | 
|---|---|
| ButtonState | 
F3
The F3 function key.
Declaration
public ButtonState F3Field Value
| Type | Description | 
|---|---|
| ButtonState | 
F4
The F4 function key.
Declaration
public ButtonState F4Field Value
| Type | Description | 
|---|---|
| ButtonState | 
F5
The F5 function key.
Declaration
public ButtonState F5Field Value
| Type | Description | 
|---|---|
| ButtonState | 
F6
The F6 function key.
Declaration
public ButtonState F6Field Value
| Type | Description | 
|---|---|
| ButtonState | 
F7
The F7 function key.
Declaration
public ButtonState F7Field Value
| Type | Description | 
|---|---|
| ButtonState | 
F8
The F8 function key.
Declaration
public ButtonState F8Field Value
| Type | Description | 
|---|---|
| ButtonState | 
F9
The F9 function key.
Declaration
public ButtonState F9Field Value
| Type | Description | 
|---|---|
| ButtonState | 
Favorites
The favorite key.
Declaration
public ButtonState FavoritesField Value
| Type | Description | 
|---|---|
| ButtonState | 
Final
The final symbol key-shift button.
Declaration
public ButtonState FinalField Value
| Type | Description | 
|---|---|
| ButtonState | 
G
The 'G' key.
Declaration
public ButtonState GField Value
| Type | Description | 
|---|---|
| ButtonState | 
GoBack
The go-back key.
Declaration
public ButtonState GoBackField Value
| Type | Description | 
|---|---|
| ButtonState | 
GoForward
The go-forward key.
Declaration
public ButtonState GoForwardField Value
| Type | Description | 
|---|---|
| ButtonState | 
GoHome
The "Go Home" key.
Declaration
public ButtonState GoHomeField Value
| Type | Description | 
|---|---|
| ButtonState | 
Grave
The grave key.
Declaration
public ButtonState GraveField Value
| Type | Description | 
|---|---|
| ButtonState | 
H
The letter "H" key.
Declaration
public ButtonState HField Value
| Type | Description | 
|---|---|
| ButtonState | 
Help
The Help key or button.
Declaration
public ButtonState HelpField Value
| Type | Description | 
|---|---|
| ButtonState | 
Home
The Home key.
Declaration
public ButtonState HomeField Value
| Type | Description | 
|---|---|
| ButtonState | 
I
The "I" key.
Declaration
public ButtonState IField Value
| Type | Description | 
|---|---|
| ButtonState | 
Insert
The Insert key.
Declaration
public ButtonState InsertField Value
| Type | Description | 
|---|---|
| ButtonState | 
J
The "J" key.
Declaration
public ButtonState JField Value
| Type | Description | 
|---|---|
| ButtonState | 
Junja
The Junja symbol key shift button.
Declaration
public ButtonState JunjaField Value
| Type | Description | 
|---|---|
| ButtonState | 
K
The "K" key.
Declaration
public ButtonState KField Value
| Type | Description | 
|---|---|
| ButtonState | 
Kana
The Kana symbol key shift button.
Declaration
public ButtonState KanaField Value
| Type | Description | 
|---|---|
| ButtonState | 
Kanji
The Kanji symbol key shift button.
Declaration
public ButtonState KanjiField Value
| Type | Description | 
|---|---|
| ButtonState | 
L
The "L" key.
Declaration
public ButtonState LField Value
| Type | Description | 
|---|---|
| ButtonState | 
Left
The Left Arrow key.
Declaration
public ButtonState LeftField Value
| Type | Description | 
|---|---|
| ButtonState | 
LeftAlt
Represents the left Alt key.
Declaration
public ButtonState LeftAltField Value
| Type | Description | 
|---|---|
| ButtonState | 
LeftControl
The left Ctrl key.
Declaration
public ButtonState LeftControlField Value
| Type | Description | 
|---|---|
| ButtonState | 
LeftMenu
The left menu key.
Declaration
public ButtonState LeftMenuField Value
| Type | Description | 
|---|---|
| ButtonState | 
LeftShift
The left shift key.
Declaration
public ButtonState LeftShiftField Value
| Type | Description | 
|---|---|
| ButtonState | 
LeftWindows
The left Windows key.
Declaration
public ButtonState LeftWindowsField Value
| Type | Description | 
|---|---|
| ButtonState | 
M
The "M" key.
Declaration
public ButtonState MField Value
| Type | Description | 
|---|---|
| ButtonState | 
Menu
Represents the menu key or button.
Declaration
public ButtonState MenuField Value
| Type | Description | 
|---|---|
| ButtonState | 
ModeChange
The mode-change key.
Declaration
public ButtonState ModeChangeField Value
| Type | Description | 
|---|---|
| ButtonState | 
Multiply
The multiply (*) operation key located on a numeric keypad.
Declaration
public ButtonState MultiplyField Value
| Type | Description | 
|---|---|
| ButtonState | 
N
The "N" key.
Declaration
public ButtonState NField Value
| Type | Description | 
|---|---|
| ButtonState | 
NavigationAccept
The navigation accept button.
Declaration
public ButtonState NavigationAcceptField Value
| Type | Description | 
|---|---|
| ButtonState | 
NavigationCancel
The navigation cancel button.
Declaration
public ButtonState NavigationCancelField Value
| Type | Description | 
|---|---|
| ButtonState | 
NavigationDown
The navigation down button.
Declaration
public ButtonState NavigationDownField Value
| Type | Description | 
|---|---|
| ButtonState | 
NavigationLeft
The left navigation button.
Declaration
public ButtonState NavigationLeftField Value
| Type | Description | 
|---|---|
| ButtonState | 
NavigationMenu
The navigation menu button.
Declaration
public ButtonState NavigationMenuField Value
| Type | Description | 
|---|---|
| ButtonState | 
NavigationRight
The right navigation button.
Declaration
public ButtonState NavigationRightField Value
| Type | Description | 
|---|---|
| ButtonState | 
NavigationUp
The navigation upward button.
Declaration
public ButtonState NavigationUpField Value
| Type | Description | 
|---|---|
| ButtonState | 
NavigationView
The navigation upward button.
Declaration
public ButtonState NavigationViewField Value
| Type | Description | 
|---|---|
| ButtonState | 
NonConvert
The non-convert button or key.
Declaration
public ButtonState NonConvertField Value
| Type | Description | 
|---|---|
| ButtonState | 
Number0
The "0" key.
Declaration
public ButtonState Number0Field Value
| Type | Description | 
|---|---|
| ButtonState | 
Number1
The number "1" key.
Declaration
public ButtonState Number1Field Value
| Type | Description | 
|---|---|
| ButtonState | 
Number2
The "2" key.
Declaration
public ButtonState Number2Field Value
| Type | Description | 
|---|---|
| ButtonState | 
Number3
The number "3" key.
Declaration
public ButtonState Number3Field Value
| Type | Description | 
|---|---|
| ButtonState | 
Number4
The "4" key.
Declaration
public ButtonState Number4Field Value
| Type | Description | 
|---|---|
| ButtonState | 
Number5
The "5" key.
Declaration
public ButtonState Number5Field Value
| Type | Description | 
|---|---|
| ButtonState | 
Number6
The "6" key.
Declaration
public ButtonState Number6Field Value
| Type | Description | 
|---|---|
| ButtonState | 
Number7
The "7" key.
Declaration
public ButtonState Number7Field Value
| Type | Description | 
|---|---|
| ButtonState | 
Number8
The number "8" key.
Declaration
public ButtonState Number8Field Value
| Type | Description | 
|---|---|
| ButtonState | 
Number9
The "9" key.
Declaration
public ButtonState Number9Field Value
| Type | Description | 
|---|---|
| ButtonState | 
NumberKeyLock
The Num Lock key.
Declaration
public ButtonState NumberKeyLockField Value
| Type | Description | 
|---|---|
| ButtonState | 
NumberPad0
The "0" key located on a numeric pad.
Declaration
public ButtonState NumberPad0Field Value
| Type | Description | 
|---|---|
| ButtonState | 
NumberPad1
The number "1" key located on a numeric pad.
Declaration
public ButtonState NumberPad1Field Value
| Type | Description | 
|---|---|
| ButtonState | 
NumberPad2
The number "2" key as located on a numeric keypad.
Declaration
public ButtonState NumberPad2Field Value
| Type | Description | 
|---|---|
| ButtonState | 
NumberPad3
The number "3" key as located on a numeric keypad.
Declaration
public ButtonState NumberPad3Field Value
| Type | Description | 
|---|---|
| ButtonState | 
NumberPad4
The number "4" key located on a numeric pad.
Declaration
public ButtonState NumberPad4Field Value
| Type | Description | 
|---|---|
| ButtonState | 
NumberPad5
The number "5" key located on a numeric pad.
Declaration
public ButtonState NumberPad5Field Value
| Type | Description | 
|---|---|
| ButtonState | 
NumberPad6
The number "6" key as located on a numeric keypad.
Declaration
public ButtonState NumberPad6Field Value
| Type | Description | 
|---|---|
| ButtonState | 
NumberPad7
The number "7" key as located on a numeric keypad.
Declaration
public ButtonState NumberPad7Field Value
| Type | Description | 
|---|---|
| ButtonState | 
NumberPad8
The number "8" key located on a numeric keypad.
Declaration
public ButtonState NumberPad8Field Value
| Type | Description | 
|---|---|
| ButtonState | 
NumberPad9
The number "9" key as located on a numeric keypad.
Declaration
public ButtonState NumberPad9Field Value
| Type | Description | 
|---|---|
| ButtonState | 
O
The letter "O" key.
Declaration
public ButtonState OField Value
| Type | Description | 
|---|---|
| ButtonState | 
P
The "P" key.
Declaration
public ButtonState PField Value
| Type | Description | 
|---|---|
| ButtonState | 
PageDown
The Page Down key.
Declaration
public ButtonState PageDownField Value
| Type | Description | 
|---|---|
| ButtonState | 
PageUp
The Page Up key.
Declaration
public ButtonState PageUpField Value
| Type | Description | 
|---|---|
| ButtonState | 
Pause
The Pause key or button.
Declaration
public ButtonState PauseField Value
| Type | Description | 
|---|---|
| ButtonState | 
Period
The period key.
Declaration
public ButtonState PeriodField Value
| Type | Description | 
|---|---|
| ButtonState | 
The Print key or button.
Declaration
public ButtonState PrintField Value
| Type | Description | 
|---|---|
| ButtonState | 
Q
The "Q" key.
Declaration
public ButtonState QField Value
| Type | Description | 
|---|---|
| ButtonState | 
R
The "R" key.
Declaration
public ButtonState RField Value
| Type | Description | 
|---|---|
| ButtonState | 
Refresh
The refresh key.
Declaration
public ButtonState RefreshField Value
| Type | Description | 
|---|---|
| ButtonState | 
Right
The right arrow key.
Declaration
public ButtonState RightField Value
| Type | Description | 
|---|---|
| ButtonState | 
RightAlt
The Right Alt key.
Declaration
public ButtonState RightAltField Value
| Type | Description | 
|---|---|
| ButtonState | 
RightControl
The right Ctrl key.
Declaration
public ButtonState RightControlField Value
| Type | Description | 
|---|---|
| ButtonState | 
RightMenu
The right menu key.
Declaration
public ButtonState RightMenuField Value
| Type | Description | 
|---|---|
| ButtonState | 
RightShift
The right Shift key.
Declaration
public ButtonState RightShiftField Value
| Type | Description | 
|---|---|
| ButtonState | 
RightWindows
The right Windows key.
Declaration
public ButtonState RightWindowsField Value
| Type | Description | 
|---|---|
| ButtonState | 
S
Represents the "S" key.
Declaration
public ButtonState SField Value
| Type | Description | 
|---|---|
| ButtonState | 
Scroll
The Scroll Lock (ScrLk) key.
Declaration
public ButtonState ScrollField Value
| Type | Description | 
|---|---|
| ButtonState | 
Search
The search key.
Declaration
public ButtonState SearchField Value
| Type | Description | 
|---|---|
| ButtonState | 
Select
The Select key or button.
Declaration
public ButtonState SelectField Value
| Type | Description | 
|---|---|
| ButtonState | 
Semicolon
The semicolon key.
Declaration
public ButtonState SemicolonField Value
| Type | Description | 
|---|---|
| ButtonState | 
Separator
The separator key located on a numeric pad.
Declaration
public ButtonState SeparatorField Value
| Type | Description | 
|---|---|
| ButtonState | 
Shift
The Shift key. This is the general Shift case, applicable to key layouts with only one Shift key or that do not need to differentiate between left Shift and right Shift keystrokes.
Declaration
public ButtonState ShiftField Value
| Type | Description | 
|---|---|
| ButtonState | 
Slash
The slash key.
Declaration
public ButtonState SlashField Value
| Type | Description | 
|---|---|
| ButtonState | 
Sleep
The Sleep key or button.
Declaration
public ButtonState SleepField Value
| Type | Description | 
|---|---|
| ButtonState | 
Space
The Spacebar key or button.
Declaration
public ButtonState SpaceField Value
| Type | Description | 
|---|---|
| ButtonState | 
Stop
The stop key.
Declaration
public ButtonState StopField Value
| Type | Description | 
|---|---|
| ButtonState | 
Subtract
The subtract (-) operation key located on a numeric keypad.
Declaration
public ButtonState SubtractField Value
| Type | Description | 
|---|---|
| ButtonState | 
T
The "T" key.
Declaration
public ButtonState TField Value
| Type | Description | 
|---|---|
| ButtonState | 
Tab
The tab key.
Declaration
public ButtonState TabField Value
| Type | Description | 
|---|---|
| ButtonState | 
U
The "U" key.
Declaration
public ButtonState UField Value
| Type | Description | 
|---|---|
| ButtonState | 
Underline
The underline key.
Declaration
public ButtonState UnderlineField Value
| Type | Description | 
|---|---|
| ButtonState | 
Up
The Up Arrow key.
Declaration
public ButtonState UpField Value
| Type | Description | 
|---|---|
| ButtonState | 
V
The "V" key.
Declaration
public ButtonState VField Value
| Type | Description | 
|---|---|
| ButtonState | 
W
The letter "W" key.
Declaration
public ButtonState WField Value
| Type | Description | 
|---|---|
| ButtonState | 
X
The "X" key.
Declaration
public ButtonState XField Value
| Type | Description | 
|---|---|
| ButtonState | 
Y
The "Y" key.
Declaration
public ButtonState YField Value
| Type | Description | 
|---|---|
| ButtonState | 
Z
The "Z" key.
Declaration
public ButtonState ZField Value
| Type | Description | 
|---|---|
| ButtonState | 
Properties
IsConnected
Gets or sets a value indicating whether this instance is connected.
Declaration
public bool IsConnected { readonly get; set; }Property Value
| Type | Description | 
|---|---|
| bool | 
 | 
Methods
GetChar(Keys)
Gets the char of a pressed key.
Declaration
public char GetChar(Keys key)Parameters
| Type | Name | Description | 
|---|---|---|
| Keys | key | The pressed key. | 
Returns
| Type | Description | 
|---|---|
| char | Returns the char. | 
IsKeyPressed(Keys)
Determines whether the specified key is pressed.
Declaration
public bool IsKeyPressed(Keys key)Parameters
| Type | Name | Description | 
|---|---|---|
| Keys | key | The key. | 
Returns
| Type | Description | 
|---|---|
| bool | 
 | 
IsKeyReleased(Keys)
Determines whether the specified key is released.
Declaration
public bool IsKeyReleased(Keys key)Parameters
| Type | Name | Description | 
|---|---|---|
| Keys | key | The key. | 
Returns
| Type | Description | 
|---|---|
| bool | 
 |