Click or drag to resize
DigitalRuneIInputServiceIsPressed Method (Keys, Boolean)
Determines whether the specified key was previously up and has been pressed.

Namespace: DigitalRune.Game.Input
Assembly: DigitalRune.Game.Input (in DigitalRune.Game.Input.dll) Version: 1.8.0.0 (1.8.0.14467)
Syntax
bool IsPressed(
	Keys key,
	bool useKeyRepetition
)

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