| InputManagerIsDown Method (Buttons, LogicalPlayerIndex) |
Determines whether the specified button is down for the given player.
(Not available in Silverlight.)
Namespace: DigitalRune.Game.InputAssembly: DigitalRune.Game.Input (in DigitalRune.Game.Input.dll) Version: 1.8.0.0 (1.8.0.14467)
Syntax public bool IsDown(
Buttons button,
LogicalPlayerIndex player
)
Public Function IsDown (
button As Buttons,
player As LogicalPlayerIndex
) As Boolean
public:
virtual bool IsDown(
Buttons button,
LogicalPlayerIndex player
) sealed
abstract IsDown :
button : Buttons *
player : LogicalPlayerIndex -> bool
override IsDown :
button : Buttons *
player : LogicalPlayerIndex -> bool
Parameters
- button
- Type: Buttons
The button. - player
- Type: DigitalRune.Game.InputLogicalPlayerIndex
The LogicalPlayerIndex that identifies the player.
(Any to check the game controllers of all available
players.)
Return Value
Type:
Boolean if the specified button is down; otherwise,
.
Implements
IInputServiceIsDown(Buttons, LogicalPlayerIndex)See Also