0 out of 1 rated this helpful - Rate this topic

KeyboardState.IsKeyDown Method

Returns whether a specified key is currently being pressed.

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

public bool IsKeyDown (
         Keys key
)

Parameters

key
Type: Keys
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 7, Windows Vista, Windows XP, Windows Phone
Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.