KeyboardState Members

The following tables list the members exposed by the KeyboardState type.

Public MethodKeyboardStateInitializes a new instance of the KeyboardState class.

Public PropertyItemReturns the state of a particular key.

Public MethodEqualsOverloaded. Returns a value that indicates whether the current instance is equal to a specified object.
Public MethodGetHashCodeGets the hash code for this instance.
Public MethodGetPressedKeysGets an array of values that correspond to the keyboard keys that are currently being pressed.
Public MethodGetType (Inherited from Object.)
Public MethodIsKeyDownReturns whether a specified key is currently being pressed.
Public MethodIsKeyUpReturns whether a specified key is currently not pressed.
Public Method Staticop_EqualityCompares two objects to determine whether they are the same.
Public Method Staticop_InequalityCompares two objects to determine whether they are different.
Public MethodReferenceEquals (Inherited from Object.)

Protected MethodFinalize (Inherited from Object.)
Protected MethodMemberwiseClone (Inherited from Object.)

Community Additions