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