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 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:
BooleanTrue if the input is pressed, false otherwise.
Remarks See Also