| IInputServiceIsPressed Method (Buttons, Boolean, PlayerIndex) |
Determines whether the specified button has been pressed on the given game controller.
(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 bool IsPressed(
Buttons button,
bool useButtonRepetition,
PlayerIndex controller
)
Function IsPressed (
button As Buttons,
useButtonRepetition As Boolean,
controller As PlayerIndex
) As Boolean
bool IsPressed(
Buttons button,
bool useButtonRepetition,
PlayerIndex controller
)
abstract IsPressed :
button : Buttons *
useButtonRepetition : bool *
controller : PlayerIndex -> bool
Parameters
- button
- Type: Buttons
The button. - useButtonRepetition
- Type: SystemBoolean
If set to physical and virtual button presses (see
IInputService) are returned; otherwise, only physical button presses are
returned.
- controller
- Type: PlayerIndex
The PlayerIndex that identifies the game controller.
Return Value
Type:
Boolean if the specified button was previously up and has been pressed;
otherwise,
.
See Also