Click or drag to resize
PlanBaseIsInputPressed Method
Determines if the specified sprite's specified input is pressed.

Namespace: (Default Namespace)
Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax
C#
public virtual bool IsInputPressed(
	SpriteBase Sprite,
	SpriteBaseInputBits Input,
	bool InitialOnly
)

Parameters

Sprite
Type: (Default Namespace)SpriteBase
Sprite whose inputs will be examined
Input
Type: (Default Namespace)SpriteBaseInputBits
Specifies which input will be examined
InitialOnly
Type: SystemBoolean
When true only return true if the input has just been pressed and was not pressed before

Return Value

Type: Boolean
True if the input is pressed, false otherwise.
Remarks
The IsInputPressed(SpriteBaseInputBits, Boolean) function for sprite definitions is more commonly used, but this allows you to test a specific sprite's inputs on a specific layer.
See Also