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 Properties
Name | Description | |
---|---|---|
![]() |
Item | Returns the state of a particular key. |
Public Methods
Name | Description | |
---|---|---|
![]() |
Equals | Overloaded. 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. |
![]() |
ReferenceEquals | (Inherited from Object.) |
![]() |
ToString | (Inherited from ValueType.) |
Protected Methods
Name | Description | |
---|---|---|
![]() |
Finalize | (Inherited from Object.) |
![]() |
MemberwiseClone | (Inherited from Object.) |
See Also
Tasks
How to: Detect Whether a Key Is Pressed
Concepts
Reference
KeyboardState Structure
Microsoft.Xna.Framework.Input Namespace