Keyboard.IsKeyPressed Method

SFML.Net

KeyboardIsKeyPressed Method
Check if a key is pressed

Namespace: SFML.Window
Assembly: sfmlnet-window-2 (in sfmlnet-window-2.dll) Version: 2.2.0.0 (2.2.0)
Syntax
public static bool IsKeyPressed(
	KeyboardKey key
)
Public Shared Function IsKeyPressed ( 
	key As KeyboardKey
) As Boolean
public:
static bool IsKeyPressed(
	KeyboardKey key
)
static member IsKeyPressed : 
        key : KeyboardKey -> bool 

Parameters

key
Type: SFML.WindowKeyboardKey
Key to check

Return Value

Type: Boolean
True if the key is pressed, false otherwise
See Also