Click or drag to resize

InputIsKeyPressed Method

Returns true if you are pressing the key. You can pass a KeyList constant.

Namespace:  Godot
Assembly:  GodotSharp (in GodotSharp.dll) Version: 1.0.0
Syntax
C#
public static bool IsKeyPressed(
	int scancode
)

Parameters

scancode
Type: SystemInt32

[Missing <param name="scancode"/> documentation for "M:Godot.Input.IsKeyPressed(System.Int32)"]

Return Value

Type: Boolean

[Missing <returns> documentation for "M:Godot.Input.IsKeyPressed(System.Int32)"]

See Also