KeyboardState.IsKeyUp Method
Returns whether a specified key is currently not pressed.
Syntax
'Declaration
Public Function IsKeyUp ( _
key As Keys _
) As Boolean
public bool IsKeyUp (
Keys key
)
public:
bool IsKeyUp(
Keys key
)
Parameters
- key
Type: Keys
Enumerated value that specifies the key to query.
Return Value
Type: Boolean
true if the key specified by key is not pressed; false otherwise.
Requirements
Namespace: Microsoft.Xna.Framework.Input
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)
See Also
Tasks
Concepts
Overview of User Input and Input Devices
Reference
KeyboardState Structure
KeyboardState Members
Microsoft.Xna.Framework.Input Namespace
Platforms
Windows Phone