Determines whether the specified button is down on the given game controller. (Not available in Silverlight.)

Namespace: DigitalRune.Game.Input
Assembly: DigitalRune.Game.Input (in DigitalRune.Game.Input.dll) Version: 1.1.0.0 (1.1.1.9391)

Syntax

C#
bool IsDown(
	Buttons button,
	PlayerIndex controller
)
Visual Basic
Function IsDown ( _
	button As Buttons, _
	controller As PlayerIndex _
) As Boolean
Visual C++
bool IsDown(
	Buttons button, 
	PlayerIndex controller
)

Parameters

button
Type: Buttons
The button.
controller
Type: PlayerIndex
The PlayerIndex that identifies the game controller.

Return Value

trueTruetruetrue (True in Visual Basic) if the specified button is down; otherwise, falseFalsefalsefalse (False in Visual Basic).

See Also