Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

KeyboardState.IsKeyDown Method

Returns whether a specified key is currently being pressed.
Bb197698.note(en-us,XNAGameStudio.31).gifZune Specific Information

Keyboard state information is not supported. This method always returns false.

Namespace: Microsoft.Xna.Framework.Input
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public bool IsKeyDown (
         Keys key


Enumerated value that specifies the key to query.

Return Value

true if the key specified by key is being held down; false otherwise.
Xbox 360, Windows XP SP2, Windows Vista, Zune
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.