Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The following tables list the members exposed by the KeyboardState type.
Public Constructors
| Name | Description | |
|---|---|---|
![]() |
KeyboardState | Initializes a new instance of the KeyboardState class. |
Public Properties
| Name | Description | |
|---|---|---|
![]() |
Item | Returns the state of a particular key. |
Public Methods
| Name | Description | |
|---|---|---|
![]() |
Equals | Returns a value that indicates whether the current instance is equal to a specified object. |
![]() |
GetHashCode | Gets the hash code for this instance. |
![]() |
GetPressedKeys | Gets an array of values that correspond to the keyboard keys that are currently being pressed. |
![]() |
GetType | (Inherited from Object.) |
![]() |
IsKeyDown | Returns whether a specified key is currently being pressed. |
![]() |
IsKeyUp | Returns whether a specified key is currently not pressed. |
![]() |
op_Equality | Compares two objects to determine whether they are the same. |
![]() |
op_Inequality | Compares two objects to determine whether they are different. |
![]() |
ToString | (Inherited from ValueType.) |
Protected Methods
| Name | Description | |
|---|---|---|
![]() |
Finalize | (Inherited from Object.) |
![]() |
MemberwiseClone | (Inherited from Object.) |
See Also
Tasks
Detecting a Key Press (Windows, Windows Phone, Xbox 360)
Concepts
Overview of User Input and Input Devices
Reference
KeyboardState Structure
Microsoft.Xna.Framework.Input Namespace
.gif)
.gif)
.gif)
.gif)