| IInputServiceIsPressed Method (MouseButtons, Boolean) |
Determines whether the specified button was previously up and has been pressed.
Namespace: DigitalRune.Game.InputAssembly: DigitalRune.Game.Input (in DigitalRune.Game.Input.dll) Version: 1.8.0.0 (1.8.0.14467)
Syntax bool IsPressed(
MouseButtons button,
bool useButtonRepetition
)
Function IsPressed (
button As MouseButtons,
useButtonRepetition As Boolean
) As Boolean
bool IsPressed(
MouseButtons button,
bool useButtonRepetition
)
abstract IsPressed :
button : MouseButtons *
useButtonRepetition : bool -> bool
Parameters
- button
- Type: DigitalRune.Game.InputMouseButtons
The button. - useButtonRepetition
- Type: SystemBoolean
If set to physical and virtual button presses (see
IInputService) are returned; otherwise, only physical button presses are
returned.
Return Value
Type:
Boolean if the specified button was previously up and has been pressed;
otherwise,
.
See Also