Determines whether the specified button is down for the given player. (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,
	LogicalPlayerIndex player
)
Visual Basic
Function IsDown ( _
	button As Buttons, _
	player As LogicalPlayerIndex _
) As Boolean
Visual C++
bool IsDown(
	Buttons button, 
	LogicalPlayerIndex player
)

Parameters

button
Type: Buttons
The button.
player
Type: DigitalRune.Game.Input..::..LogicalPlayerIndex
The LogicalPlayerIndex that identifies the player. (Any to check the game controllers of all available players.)

Return Value

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

See Also